Skip to content

Commit

Permalink
update job label for static node exporter targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jakekeeys committed Oct 30, 2023
1 parent f9d3892 commit 5ed6662
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common/all.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cumulus/cumulus.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions merit/merit.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion wiresteward/wiresteward.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ed6662

Please sign in to comment.