Variable of the prometheus metrics port.

This commit is contained in:
Andrea Dell'Amico 2022-02-04 18:53:06 +01:00
parent ad90d2f9af
commit eb902af919
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ docker_log_to_journal: True
docker_daemon_debug: False
docker_prometheus_metrics: True
docker_prometheus_host: 127.0.0.1
docker_prometheus_metrics_port: 9323
# Usage:
# node.labels.<key_name>==<label_value>

View File

@ -16,7 +16,7 @@
{% endif %}
{% endif %}
{% if docker_prometheus_metrics %}
"metrics-addr" : "{{ docker_prometheus_host }}:9323",
"metrics-addr" : "{{ docker_prometheus_host }}:{{ docker_prometheus_metrics_port }}",
"experimental" : true,
{% endif %}
{% if docker_daemon_debug %}