From 654a98b3ce826fc437bf6754cabc318f54bfc70e Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 17 Oct 2020 14:25:45 +0900 Subject: [PATCH] Healthcheck for `prometheus`. --- .../files/etc/consul.d/service-prometheus.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cookbooks/prometheus/files/etc/consul.d/service-prometheus.json b/cookbooks/prometheus/files/etc/consul.d/service-prometheus.json index 5bd41af..f80f227 100644 --- a/cookbooks/prometheus/files/etc/consul.d/service-prometheus.json +++ b/cookbooks/prometheus/files/etc/consul.d/service-prometheus.json @@ -1,6 +1,13 @@ { "service": { "name": "prometheus", - "port": 9100 + "port": 9090, + "check":{ + "http": "http://localhost:9090/", + "tls_skip_verify": false, + "interval": "60s", + "timeout": "1s", + "success_before_passing": 3 + } } }