Commit 10bad374 authored by Marc Fournier's avatar Marc Fournier

Fix broken references to html anchors.

parent 6b641a45
...@@ -35,7 +35,7 @@ labels set by an earlier stage: ...@@ -35,7 +35,7 @@ labels set by an earlier stage:
1. Global labels, which are assigned to every target scraped by the Prometheus instance. 1. Global labels, which are assigned to every target scraped by the Prometheus instance.
2. The `job` label, which is configured as a default value for each scrape configuration. 2. The `job` label, which is configured as a default value for each scrape configuration.
3. Labels that are set per target group within a scrape configuration. 3. Labels that are set per target group within a scrape configuration.
4. Advanced label manipulation via [_relabeling_](/docs/operating/configuration/#target-relabeling-relabel_config). 4. Advanced label manipulation via [_relabeling_](/docs/operating/configuration/#relabel_config).
Each stage overwrites any colliding labels from the earlier stages. Eventually, we have a flat Each stage overwrites any colliding labels from the earlier stages. Eventually, we have a flat
set of labels that describe a single target. Those labels are then attached to every time series that set of labels that describe a single target. Those labels are then attached to every time series that
...@@ -76,7 +76,7 @@ scrape_configs: ...@@ -76,7 +76,7 @@ scrape_configs:
job: 'job2' job: 'job2'
``` ```
Through a mechanism named [_relabeling_](http://prometheus.io/docs/operating/configuration/#target-relabeling-relabel_config), Through a mechanism named [_relabeling_](http://prometheus.io/docs/operating/configuration/#relabel_config),
any label can be removed, created, or modified on a per-target level. This any label can be removed, created, or modified on a per-target level. This
enables fine-grained labeling that can also take into account metadata coming enables fine-grained labeling that can also take into account metadata coming
from the service discovery. Relabeling is the last stage of label assignment from the service discovery. Relabeling is the last stage of label assignment
...@@ -124,7 +124,7 @@ This rule transforms a target with the label set: ...@@ -124,7 +124,7 @@ This rule transforms a target with the label set:
You could then also remove the source labels in an additional relabeling step. You could then also remove the source labels in an additional relabeling step.
You can read more about relabeling and how you can use it to filter targets in the You can read more about relabeling and how you can use it to filter targets in the
[configuration documentation](/docs/operating/configuration#target-relabeling-relabel_config). [configuration documentation](/docs/operating/configuration#relabel_config).
Over the next sections, we will see how you can leverage relabeling when using service discovery. Over the next sections, we will see how you can leverage relabeling when using service discovery.
...@@ -219,7 +219,7 @@ has the `production` or `canary` Consul tag, a respective `group` label is assig ...@@ -219,7 +219,7 @@ has the `production` or `canary` Consul tag, a respective `group` label is assig
Each target's `instance` label is set to the node name provided by Consul. Each target's `instance` label is set to the node name provided by Consul.
A full documentation of all configuration parameters for service discovery via Consul A full documentation of all configuration parameters for service discovery via Consul
can be found on the [Prometheus website](/docs/operating/configuration#target-relabeling-relabel_config). can be found on the [Prometheus website](/docs/operating/configuration#relabel_config).
## Custom service discovery ## Custom service discovery
......
...@@ -241,7 +241,7 @@ A DNS-SD configuration allows specifying a set of DNS record names which ...@@ -241,7 +241,7 @@ A DNS-SD configuration allows specifying a set of DNS record names which
are periodically queried to discover a list of targets (host-port pairs). The are periodically queried to discover a list of targets (host-port pairs). The
DNS servers to be contacted are read from `/etc/resolv.conf`. DNS servers to be contacted are read from `/etc/resolv.conf`.
During the [relabeling phase](#target-relabeling-relabel_config), the meta During the [relabeling phase](#relabel_config), the meta
label `__meta_dns_name` is available on each target and is set to the SRV label `__meta_dns_name` is available on each target and is set to the SRV
record name that produced the discovered target. record name that produced the discovered target.
...@@ -301,7 +301,7 @@ services: ...@@ -301,7 +301,7 @@ services:
Note that the IP number and port used to scrape the targets is assembled as 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 `<__meta_consul_address>:<__meta_consul_service_port>`. However, in some
Consul setups, the relevant address is in `__meta_consul_service_address`. Consul setups, the relevant address is in `__meta_consul_service_address`.
In those cases, you can use the [relabel](#target-relabeling-relabel_config) In those cases, you can use the [relabel](#relabel_config)
feature to replace the special `__address__` label. feature to replace the special `__address__` label.
### `<kubernetes_sd_config>` ### `<kubernetes_sd_config>`
...@@ -530,7 +530,7 @@ As a fallback, the file contents are also re-read periodically at the specified ...@@ -530,7 +530,7 @@ As a fallback, the file contents are also re-read periodically at the specified
refresh interval. refresh interval.
Each target has a meta label `__meta_filepath` during the Each target has a meta label `__meta_filepath` during the
[relabeling phase](#target-relabeling-relabel_config). Its value is set to the [relabeling phase](#relabel_config). Its value is set to the
filepath from which the target was extracted. filepath from which the target was extracted.
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment