Add configurable metrics endpoint to prometheus output (#3245)

This commit is contained in:
Paulo Cabido
2017-09-19 11:27:11 -07:00
committed by Daniel Nelson
parent cf69a97ae0
commit 43e2400612
3 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# Prometheus Client Service Output Plugin
This plugin starts a [Prometheus](https://prometheus.io/) Client, it exposes all metrics on `/metrics` to be polled by a Prometheus server.
This plugin starts a [Prometheus](https://prometheus.io/) Client, it exposes all metrics on `/metrics` (default) to be polled by a Prometheus server.
## Configuration
@@ -10,6 +10,9 @@ This plugin starts a [Prometheus](https://prometheus.io/) Client, it exposes all
# Address to listen on
listen = ":9273"
# Path to publish the metrics on, defaults to /metrics
path = "/metrics"
# Expiration interval for each metric. 0 == no expiration
expiration_interval = "60s"
```