mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 05:47:27 -08:00
[Doc] Fix wrong description in kubernetes expamle (#7012)
Signed-off-by: guoruyi1 <guoruyi1@xiaomi.com> Co-authored-by: guoruyi1 <guoruyi1@xiaomi.com>
This commit is contained in:
parent
8fa4ada9ae
commit
e31b7b2679
|
@ -264,8 +264,6 @@ scrape_configs:
|
||||||
#
|
#
|
||||||
# Example relabel to scrape only single, desired port for the pod
|
# Example relabel to scrape only single, desired port for the pod
|
||||||
# based on pod "example.io/scrape_port = <port>" annotation.
|
# based on pod "example.io/scrape_port = <port>" annotation.
|
||||||
# Note that __address__ is modified here, so if pod containers' ports
|
|
||||||
# are declared, they all will be ignored.
|
|
||||||
# - source_labels: [__address__, __meta_kubernetes_pod_annotation_example_io_scrape_port]
|
# - source_labels: [__address__, __meta_kubernetes_pod_annotation_example_io_scrape_port]
|
||||||
# action: replace
|
# action: replace
|
||||||
# regex: ([^:]+)(?::\d+)?;(\d+)
|
# regex: ([^:]+)(?::\d+)?;(\d+)
|
||||||
|
|
Loading…
Reference in a new issue