Add option to disable labels in prometheus output for string fields (#3765)

This commit is contained in:
S
2018-02-16 23:07:26 +01:00
committed by Daniel Nelson
parent c48b15e620
commit 17e1bff028
3 changed files with 52 additions and 5 deletions

View File

@@ -23,4 +23,8 @@ This plugin starts a [Prometheus](https://prometheus.io/) Client, it exposes all
# Expiration interval for each metric. 0 == no expiration
expiration_interval = "60s"
# Send string metrics as Prometheus labels.
# Unless set to false all string metrics will be sent as labels.
string_as_label = true
```