feat(dgn-notify): send systemd failure to alertmanager #633

Open
lbailly wants to merge 1 commit from alert-manager-notify into main
Member
No description provided.
feat(dgn-notify): send systemd failure to alertmanager
All checks were successful
Build all the nodes / bridge01 (pull_request) Successful in 50s
Build all the nodes / optic-loop (pull_request) Successful in 21s
Build all the nodes / cof02 (pull_request) Successful in 55s
Build all the nodes / build01 (pull_request) Successful in 58s
Build all the nodes / hypervisor12 (pull_request) Successful in 59s
Build all the nodes / geo01 (pull_request) Successful in 1m1s
Build all the nodes / hypervisor11 (pull_request) Successful in 1m7s
Build all the nodes / hypervisor01 (pull_request) Successful in 1m9s
Build all the nodes / geo02 (pull_request) Successful in 1m9s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m8s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m9s
Build all the nodes / iso (pull_request) Successful in 59s
Build all the nodes / lab-router01 (pull_request) Successful in 56s
Build all the nodes / sw-Jourdan (pull_request) Successful in 23s
Build all the nodes / hypervisor13 (pull_request) Successful in 1m3s
Build all the nodes / compute01 (pull_request) Successful in 1m19s
Build all the nodes / sw-Montrouge (pull_request) Successful in 24s
Build all the nodes / krz01 (pull_request) Successful in 1m8s
Build all the nodes / sw-Pantheon (pull_request) Successful in 24s
Build all the nodes / storage01 (pull_request) Successful in 44s
Build all the nodes / tower01 (pull_request) Successful in 41s
Build all the nodes / rescue01 (pull_request) Successful in 53s
Build the shell / build-shell (pull_request) Successful in 24s
Build all the nodes / web02 (pull_request) Successful in 39s
Build all the nodes / zulip01 (pull_request) Successful in 37s
Build all the nodes / web03 (pull_request) Successful in 47s
Build all the nodes / web01 (pull_request) Successful in 1m2s
Build all the nodes / vault01 (pull_request) Successful in 1m43s
Build all the nodes / vault03 (pull_request) Successful in 1m46s
Build all the nodes / vault02 (pull_request) Successful in 1m50s
d969275365
Owner
Maybe ceci est à lire https://prometheus.io/docs/alerting/latest/clients/
@ -77,0 +80,4 @@
<(echo '{
"alertgroup": "systemd failure",
"alertname": "systemd-'$HOSTNAME'",
"instance": "'$1'",
Owner

ça ne correspond pas à l'usage de instance par prometheus https://prometheus.io/docs/concepts/jobs_instances/

Je mettrai un label unit à la place. Et maybe le hostname en instance

ça ne correspond pas à l'usage de instance par prometheus https://prometheus.io/docs/concepts/jobs_instances/ Je mettrai un label unit à la place. Et maybe le hostname en instance
lbailly force-pushed alert-manager-notify from d969275365 to 1e8edd35a9 2025-09-21 12:12:06 +02:00 Compare
lbailly force-pushed alert-manager-notify from 1e8edd35a9 to 0b122d8e4a 2025-09-21 12:16:19 +02:00 Compare
Owner

Bon c'est un peu un hack mais on peut setup un second receiver dans alert manager avec le même url pour zulip mais send_resolved = false (cf https://prometheus.io/docs/alerting/latest/configuration/#webhook_config)

Bon c'est un peu un hack mais on peut setup un second receiver dans alert manager avec le même url pour zulip mais send_resolved = false (cf https://prometheus.io/docs/alerting/latest/configuration/#webhook_config)
lbailly force-pushed alert-manager-notify from 0b122d8e4a to 751ec87709 2025-09-24 07:34:26 +02:00 Compare
All checks were successful
Check meta / check_dns (pull_request) Successful in 14s
Required
Details
Check meta / check_meta (pull_request) Successful in 16s
Required
Details
Check workflows / check_workflows (pull_request) Successful in 16s
Required
Details
Run pre-commit on all files / pre-commit (push) Successful in 26s
Required
Details
Build all the nodes / ap01 (pull_request) Successful in 30s
Required
Details
Run pre-commit on all files / pre-commit (pull_request) Successful in 33s
Required
Details
Build all the nodes / geo01 (pull_request) Successful in 42s
Required
Details
Build all the nodes / bridge01 (pull_request) Successful in 45s
Required
Details
Build all the nodes / cof02 (pull_request) Successful in 44s
Required
Details
Build all the nodes / geo02 (pull_request) Successful in 44s
Required
Details
Build all the nodes / build01 (pull_request) Successful in 46s
Required
Details
Build all the nodes / hypervisor02 (pull_request) Successful in 47s
Required
Details
Build all the nodes / hypervisor01 (pull_request) Successful in 48s
Required
Details
Build all the nodes / hypervisor03 (pull_request) Successful in 47s
Required
Details
Build all the nodes / compute01 (pull_request) Successful in 1m4s
Required
Details
Build all the nodes / hypervisor11 (pull_request) Successful in 41s
Required
Details
Build all the nodes / hypervisor12 (pull_request) Successful in 38s
Required
Details
Build all the nodes / hypervisor13 (pull_request) Successful in 35s
Required
Details
Build all the nodes / lab-router01 (pull_request) Successful in 35s
Required
Details
Build all the nodes / optic-loop (pull_request) Successful in 21s
Required
Details
Build all the nodes / iso (pull_request) Successful in 43s
Required
Details
Build all the nodes / sw-Jourdan (pull_request) Successful in 21s
Required
Details
Build all the nodes / sw-Montrouge (pull_request) Successful in 21s
Required
Details
Build all the nodes / sw-Pantheon (pull_request) Successful in 22s
Required
Details
Build all the nodes / krz01 (pull_request) Successful in 1m0s
Required
Details
Build all the nodes / storage01 (pull_request) Successful in 41s
Required
Details
Build all the nodes / rescue01 (pull_request) Successful in 47s
Required
Details
Build all the nodes / tower01 (pull_request) Successful in 35s
Required
Details
Build the shell / build-shell (pull_request) Successful in 23s
Required
Details
Build all the nodes / web02 (pull_request) Successful in 48s
Required
Details
Build all the nodes / vault01 (pull_request) Successful in 1m27s
Required
Details
Build all the nodes / zulip01 (pull_request) Successful in 1m7s
Required
Details
Build all the nodes / vault03 (pull_request) Successful in 1m32s
Required
Details
Build all the nodes / web01 (pull_request) Successful in 1m33s
Required
Details
Build all the nodes / web03 (pull_request) Successful in 1m17s
Required
Details
Build all the nodes / vault02 (pull_request) Successful in 1m36s
Required
Details
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin alert-manager-notify:alert-manager-notify
git switch alert-manager-notify
Sign in to join this conversation.
No description provided.