Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
8bf820ff
Commit
8bf820ff
authored
Jul 22, 2015
by
Björn Rabenstein
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #144 from prometheus/next-release
Merge next-release into master.
parents
f7f2bfe5
16139661
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
getting_started.md
content/docs/introduction/getting_started.md
+1
-1
configuration.md
content/docs/operating/configuration.md
+9
-0
operators.md
content/docs/querying/operators.md
+6
-2
No files found.
content/docs/introduction/getting_started.md
View file @
8bf820ff
...
...
@@ -76,7 +76,7 @@ Prometheus build directory and run:
```
language-bash
# Start Prometheus.
# By default, Prometheus stores its database in
/tmp/metrics
(flag -storage.local.path).
# By default, Prometheus stores its database in
./data
(flag -storage.local.path).
./prometheus -config.file=prometheus.yml
```
...
...
content/docs/operating/configuration.md
View file @
8bf820ff
...
...
@@ -183,9 +183,12 @@ Catalog API.
The following meta labels are available on targets during relabeling:
*
`__meta_consul_address`
: the address of the target
*
`__meta_consul_node`
: the node name defined for the target
*
`__meta_consul_tags`
: the list of tags of the target joined by the tag separator
*
`__meta_consul_service`
: the name of the service the target belongs to
*
`__meta_consul_service_address`
: the service address of the target
*
`__meta_consul_service_port`
: the service port of the target
*
`__meta_consul_dc`
: the datacenter name for the target
```
...
...
@@ -206,6 +209,12 @@ services:
[ tag_separator: <string> | default = , ]
```
Note that the IP number and port used to scrape the targets is assembled as
`<__meta_consul_address>:<__meta_consul_service_port`
. However, in some
Consul setups, the relevant address is in
`__meta_consul_service_address`
.
In those cases, you can use the
[
relabel
](
#target-relabeling-relabel_config
)
feature to replace the special
`__address__`
label.
### Zookeeper Serverset SD configurations `<serverset_sd_config>`
Serverset SD configurations allow retrieving scrape targets from
[
Serversets
]
...
...
content/docs/querying/operators.md
View file @
8bf820ff
...
...
@@ -169,14 +169,18 @@ vector of fewer elements with aggregated values:
These operators can either be used to aggregate over
**all**
label dimensions
or preserve distinct dimensions by including a
`by`
-clause.
<aggr-op>(<vector expression>) [by (<label list>)] [keep
ing_extra
]
<aggr-op>(<vector expression>) [by (<label list>)] [keep
_common
]
By default, labels that are not listed in the
`by`
clause will be dropped from
the result vector, even if their label values are identical between all
elements of the vector. The
`keep
ing_extra
`
clause allows to keep those extra
elements of the vector. The
`keep
_common
`
clause allows to keep those extra
labels (labels that are identical between elements, but not in the
`by`
clause).
Until Prometheus 0.14.0, the
`keep_common`
keyword was called
`keeping_extra`
.
The latter is still supported, but is deprecated and will be removed at some
point.
Example:
If the metric
`http_requests_total`
had time series that fan out by
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment