Hacker News new | ask | show | jobs
by darkwater 1545 days ago
How did you define alarms as code in a practical way before v8? and after?
2 comments

Hi, I work on Grafana Alerting. Provisioning of alert rules (and other objects used for alerting) will be possible using a new API in Grafana 8.5 and we will update the Grafana Terraform provider right after to take advantage of this new API.
Great to hear! We are looking into jsonnet based approach but having an explicit and granular API and a Terraform provider would be miles and miles better. Thanks!
Did not tbh. We have an ops department that do not complain about menial tasks.

But of course IaC is the way we must follow.

Building a dashboard by clickety/clacking around is not a menial task, consistency across dashboards is a a core unit of observability to ensure x-functional teams can discuss issues across a common language/viewpoint, which is only enforceable through a declarative dashboard syntax.
The question was regarding alerts, not dashboards. We obviously deploy dashboards from json.

But I'm not aware of any way to deploy notification channels, probably can do that now via API. But either way we need to deploy notification channels with webhooks and tokens so that part is done manually. And then the alerts is also done manually.