Merge "Add prometheus_client as optional output"

This commit is contained in:
Jenkins 2017-06-13 14:57:50 +00:00 committed by Gerrit Code Review
commit 00e01eb56a
2 changed files with 11 additions and 0 deletions

View File

@ -42,6 +42,12 @@
write_consistency = "any"
timeout = "5s"
{% if outputs_prometheus_client is defined %}
[[outputs.prometheus_client]]
listen = "{{ outputs_prometheus_client_listen | default(':9126') }}"
expiration_interval = "{{ outputs_prometheus_client_expiration_interval | default('60s') }}"
{% endif %}
[[inputs.processes]]
[[inputs.system]]

View File

@ -38,3 +38,8 @@ kapacitor_port: 9092
# Influxdb Relay vars
influxdb_relay_port: 9096
# Prometheus Client Outputs Plugin
#outputs_prometheus_client: true
#outputs_prometheus_client_listen: ":9126"
#outputs_prometheus_client_expiration_interval: "60s"