2015-10-23 00:17:57 +08:00
|
|
|
# Prometheus Client Service Output Plugin
|
|
|
|
|
|
2017-09-20 02:27:11 +08:00
|
|
|
This plugin starts a [Prometheus](https://prometheus.io/) Client, it exposes all metrics on `/metrics` (default) to be polled by a Prometheus server.
|
2015-10-23 00:17:57 +08:00
|
|
|
|
2017-06-20 02:04:08 +08:00
|
|
|
## Configuration
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
# Publish all metrics to /metrics for Prometheus to scrape
|
|
|
|
|
[[outputs.prometheus_client]]
|
|
|
|
|
# Address to listen on
|
2017-06-30 05:03:42 +08:00
|
|
|
listen = ":9273"
|
2017-06-20 02:04:08 +08:00
|
|
|
|
2017-09-20 02:27:11 +08:00
|
|
|
# Path to publish the metrics on, defaults to /metrics
|
|
|
|
|
path = "/metrics"
|
|
|
|
|
|
2017-06-20 02:04:08 +08:00
|
|
|
# Expiration interval for each metric. 0 == no expiration
|
|
|
|
|
expiration_interval = "60s"
|
|
|
|
|
```
|