From 91d049103eb9b1b872d26a6f4cccf4c6924c835e Mon Sep 17 00:00:00 2001 From: r0zehnal0vak <k.rozehnalka@seznam.cz> Date: Wed, 16 Oct 2024 10:08:21 +0200 Subject: [PATCH] fix PrometheusDuplicateTimestamps alert --- .../01-playbook/roles/monitoring/files/values.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ansible/01-playbook/roles/monitoring/files/values.yaml b/ansible/01-playbook/roles/monitoring/files/values.yaml index 17b3be0..85b5134 100644 --- a/ansible/01-playbook/roles/monitoring/files/values.yaml +++ b/ansible/01-playbook/roles/monitoring/files/values.yaml @@ -95,7 +95,7 @@ alertmanager: routes: - receiver: 'null' matchers: - - alertname =~ "(Watchdog|etcdHighCommitDurations|etcdHighFsyncDurations|PrometheusDuplicateTimestamps|CPUThrottlingHigh)" # alerts to be ignored + - alertname =~ "(Watchdog|InfoInhibitor|etcdHighCommitDurations|etcdHighFsyncDurations|CPUThrottlingHigh)" # alerts to be ignored - receiver: 'slack-notifications' continue: true - receiver: 'outlook-notifications' @@ -139,4 +139,12 @@ kubeEtcd: # scheme: http # relabelings: # - targetLabel: env - # replacement: prod \ No newline at end of file + # replacement: prod + +kube-state-metrics: + prometheus: + monitor: + metricRelabelings: + - action: drop + regex: "kube_endpoint_ports;etcd-metrics" # fix PrometheusDuplicateTimestamps alert + sourceLabels: [__name__, endpoint] \ No newline at end of file -- GitLab