From a5cf11698fe0b173ac27a7b4154b0e735852c6a3 Mon Sep 17 00:00:00 2001
From: Andrea Dell'Amico <andrea.dellamico@isti.cnr.it>
Date: Wed, 16 Sep 2020 17:03:37 +0200
Subject: [PATCH] Add the prometheus directives to the daemon configuration

---
 templates/daemon.json.j2 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/templates/daemon.json.j2 b/templates/daemon.json.j2
index 9143d68..bfea5e9 100644
--- a/templates/daemon.json.j2
+++ b/templates/daemon.json.j2
@@ -9,8 +9,14 @@
     "tlskey": "{{ docker_tls_key }}",
 {% if docker_tls_verify_clients %}
     "tlsverify": true,
+{% else %}
+    "tlsverify": false,
 {% endif %}
 {% endif %}
+{% if docker_prometheus_metrics %}
+    "metrics-addr" : "{{ docker_prometheus_host }}:9323",
+    "experimental" : true,
+{% endif %}
 {% if docker_daemon_debug %}
     "debug": true
 {% else %}