NixOS / infra

NixOS configurations for nixos.org and its servers
MIT License
208 stars 91 forks source link

go-neb: Only show Grafana link when applicable #418

Closed Erethon closed 2 months ago

Erethon commented 2 months ago

This patch is a small change in the go-neb configuration to remove some clutter from the infra alerts room. Since some alerts don't include a link to a Grafana dashboard, we can only print that part of the message when it's relevant.

I haven't tested this with an actual go-neb instance + alertmanager, but only a Go templating tester and seems to work fine.