Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update job label for static node exporter targets #58

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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