From f09dfbe8cfe50d82430b4a2801b8eb5cf8a436f7 Mon Sep 17 00:00:00 2001 From: mvgijssel <6029816+mvgijssel@users.noreply.github.com> Date: Mon, 22 May 2023 22:21:16 +0200 Subject: [PATCH 1/3] Fix overlapping metrics for Teleport health check --- provisioner/deploys/teleport/files/teleport_health_check.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/provisioner/deploys/teleport/files/teleport_health_check.conf b/provisioner/deploys/teleport/files/teleport_health_check.conf index e9b428ef7..841d74c56 100644 --- a/provisioner/deploys/teleport/files/teleport_health_check.conf +++ b/provisioner/deploys/teleport/files/teleport_health_check.conf @@ -1,4 +1,6 @@ [[inputs.http_response]] + interval = "10s" + tagexclude = ["result"] urls = ["http://localhost:3000/healthz"] response_timeout = "5s" method = "GET" From 464b00741b54997c3ccba90820c51869e0977672 Mon Sep 17 00:00:00 2001 From: mvgijssel <6029816+mvgijssel@users.noreply.github.com> Date: Mon, 22 May 2023 22:23:12 +0200 Subject: [PATCH 2/3] also exclude status_code --- provisioner/deploys/teleport/files/teleport_health_check.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioner/deploys/teleport/files/teleport_health_check.conf b/provisioner/deploys/teleport/files/teleport_health_check.conf index 841d74c56..8a588c28b 100644 --- a/provisioner/deploys/teleport/files/teleport_health_check.conf +++ b/provisioner/deploys/teleport/files/teleport_health_check.conf @@ -1,6 +1,6 @@ [[inputs.http_response]] interval = "10s" - tagexclude = ["result"] + tagexclude = ["result", "status_code"] urls = ["http://localhost:3000/healthz"] response_timeout = "5s" method = "GET" From 12cc3ac8f8ba213b088a6700d87711947e22ace0 Mon Sep 17 00:00:00 2001 From: mvgijssel <6029816+mvgijssel@users.noreply.github.com> Date: Mon, 22 May 2023 22:26:51 +0200 Subject: [PATCH 3/3] add comment --- provisioner/deploys/teleport/files/teleport_health_check.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/provisioner/deploys/teleport/files/teleport_health_check.conf b/provisioner/deploys/teleport/files/teleport_health_check.conf index 8a588c28b..2c3e4c12b 100644 --- a/provisioner/deploys/teleport/files/teleport_health_check.conf +++ b/provisioner/deploys/teleport/files/teleport_health_check.conf @@ -1,5 +1,6 @@ [[inputs.http_response]] interval = "10s" + # Need to remove these tags to prevent overlapping metrics due to stale timeseries. tagexclude = ["result", "status_code"] urls = ["http://localhost:3000/healthz"] response_timeout = "5s"