fix: Update sample.conf for prometheus (#11217)
This commit is contained in:
parent
31c000b801
commit
91d50ee374
|
|
@ -3,13 +3,9 @@
|
||||||
## An array of urls to scrape metrics from.
|
## An array of urls to scrape metrics from.
|
||||||
urls = ["http://localhost:9100/metrics"]
|
urls = ["http://localhost:9100/metrics"]
|
||||||
|
|
||||||
## Metric version controls the mapping from Prometheus metrics into
|
## Metric version controls the mapping from Prometheus metrics into Telegraf metrics.
|
||||||
## Telegraf metrics. When using the prometheus_client output, use the same
|
## See "Metric Format Configuration" in plugins/inputs/prometheus/README.md for details.
|
||||||
## value in both plugins to ensure metrics are round-tripped without
|
## Valid options: 1, 2
|
||||||
## modification.
|
|
||||||
##
|
|
||||||
## example: metric_version = 1;
|
|
||||||
## metric_version = 2; recommended version
|
|
||||||
# metric_version = 1
|
# metric_version = 1
|
||||||
|
|
||||||
## Url tag name (tag containing scrapped url. optional, default is "url")
|
## Url tag name (tag containing scrapped url. optional, default is "url")
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,9 @@
|
||||||
## Address to listen on.
|
## Address to listen on.
|
||||||
listen = ":9273"
|
listen = ":9273"
|
||||||
|
|
||||||
## Metric version controls the mapping from Telegraf metrics into
|
## Metric version controls the mapping from Prometheus metrics into Telegraf metrics.
|
||||||
## Prometheus format. When using the prometheus input, use the same value in
|
## See "Metric Format Configuration" in plugins/inputs/prometheus/README.md for details.
|
||||||
## both plugins to ensure metrics are round-tripped without modification.
|
## Valid options: 1, 2
|
||||||
##
|
|
||||||
## example: metric_version = 1;
|
|
||||||
## metric_version = 2; recommended version
|
|
||||||
# metric_version = 1
|
# metric_version = 1
|
||||||
|
|
||||||
## Use HTTP Basic Authentication.
|
## Use HTTP Basic Authentication.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue