From 5ed6662932875bc91526e6e1b1b822b92e25f00e Mon Sep 17 00:00:00 2001 From: Jake Keeys Date: Mon, 30 Oct 2023 12:38:11 +0000 Subject: [PATCH] update job label for static node exporter targets --- common/all.yaml.tmpl | 2 +- cumulus/cumulus.yaml.tmpl | 4 ++-- merit/merit.yaml.tmpl | 4 ++-- wiresteward/wiresteward.yaml.tmpl | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/all.yaml.tmpl b/common/all.yaml.tmpl index adaeaba..5b9c929 100644 --- a/common/all.yaml.tmpl +++ b/common/all.yaml.tmpl @@ -163,7 +163,7 @@ groups: # Non-kube targets have their own dedicated alerts - alert: NodeExporterDown(kube) # Joining with kube_pod_info to get the pod name of the exporter, to enable the loki link - expr: up{job="node-exporter", node!=""} * on (node) group_left(pod) kube_pod_info{created_by_name="node-exporter"} == 0 + expr: up{job="node-exporter-static", node!=""} * on (node) group_left(pod) kube_pod_info{created_by_name="node-exporter"} == 0 for: 5m labels: team: infra diff --git a/cumulus/cumulus.yaml.tmpl b/cumulus/cumulus.yaml.tmpl index ef7ab19..80679de 100644 --- a/cumulus/cumulus.yaml.tmpl +++ b/cumulus/cumulus.yaml.tmpl @@ -19,9 +19,9 @@ groups: summary: Cumulus Promtail service is down - alert: CumulusDown expr: | - up{job="node-exporter", instance=~"cumulus-.*.:9100"} != 1 + up{job="node-exporter-static", instance=~"cumulus-.*.:9100"} != 1 or - absent(up{job="node-exporter", instance=~"cumulus-.*.:9100"}) + absent(up{job="node-exporter-static", instance=~"cumulus-.*.:9100"}) for: 10m labels: team: infra diff --git a/merit/merit.yaml.tmpl b/merit/merit.yaml.tmpl index 4fc7230..80e2356 100644 --- a/merit/merit.yaml.tmpl +++ b/merit/merit.yaml.tmpl @@ -15,7 +15,7 @@ groups: - name: nat rules: - alert: NATNodeDown - expr: up{job="node-exporter", instance=~"nat.*"} != 1 or absent(up{job="node-exporter", instance=~"nat.*"}) + expr: up{job="node-exporter-static", instance=~"nat.*"} != 1 or absent(up{job="node-exporter-static", instance=~"nat.*"}) for: 10m labels: team: infra @@ -41,7 +41,7 @@ groups: - name: matchbox rules: - alert: MatchboxNodeDown - expr: up{job="node-exporter", instance=~"matchbox.*"} != 1 or absent(up{job="node-exporter", instance=~"matchbox.*"}) + expr: up{job="node-exporter-static", instance=~"matchbox.*"} != 1 or absent(up{job="node-exporter-static", instance=~"matchbox.*"}) for: 15m labels: team: infra diff --git a/wiresteward/wiresteward.yaml.tmpl b/wiresteward/wiresteward.yaml.tmpl index 0c6cb09..f5c734d 100644 --- a/wiresteward/wiresteward.yaml.tmpl +++ b/wiresteward/wiresteward.yaml.tmpl @@ -5,7 +5,7 @@ groups: - name: wiresteward rules: - alert: WirestewardNodeDown - expr: up{job="node-exporter", instance=~"^\\d\\.private-wiresteward.+$"} != 1 or absent(up{job="node-exporter", instance=~"^\\d\\.private-wiresteward.+$"}) + expr: up{job="node-exporter-static", instance=~"^\\d\\.private-wiresteward.+$"} != 1 or absent(up{job="node-exporter-static", instance=~"^\\d\\.private-wiresteward.+$"}) for: 10m labels: team: infra