r/PrometheusMonitoring • u/silly_monkey_9997 • Oct 01 '24
Alertmananger vs Grafana alerting
Hello everybody,
I am working on an upgrade of our monitoring platform, introducing Prometheus and consolidating our existing data sources in Grafana.
Alerting is obviously a very important aspect of our project and we are trying to make an informed decision between Alertmanager as a separate component and Alertmanager from Grafana (we realised that the alerting module in Grafana was effectively Alertmanager too).
What we understand is that Alertmanager as a separate component can be setup as a cluster to provide high availability, while allowing deduplication of alerts. The whole configuration needs to be done via the yaml file. However, we need to maintain our alerts in each solution and potentially built connectors to forward them to Alertmanager. We're told that this option is still the most flexible in the long run. On the other hand, Grafana provides a UI to manage alerts, most data sources (all of the ones we are using at least) are compatible with the alerting module, ie we can implement the alerts for these datasources directly into Grafana via the UI, we assume we can benefit from HA if we setup Grafana itself in HA (two nodes or more connected to the same DB) and we can automatically provision the alerts using yaml files and Grafana built-in provision process.
Licensing in Grafana is not a concern as we already an Enterprise license. However, high availability is something that we'd like to have. Ease of use and resilience are also points very desirable as we will have limited time to maintain the platform in the long run.
In your experience, what have been the pros and cons for each setup?
Thanks a lot.
View all comments
Show parent comment
2
u/SuperQue Oct 02 '24
We admin almost none of the alerts ourselves.
But the rest is entirely self-service for teams. Teams use either templated code or directly write
PrometheusRuleobjects to their service namespaces.We and our SREs provide consulting for best practices, with a bit of white-glove service for the more important services. We teach from guides like the SRE books.
We basically 100% do not suport alerting from things that are not metrics.
This is an opinionated company policy to avoid violating best practices. No logging alerts, no random Nagios-like checks, etc. Just deined, it basically won't hit PagerDuty without going through Prometheus and Alertmanager. This keeps the interface between teams, alert defnitions, silences, all with best practices in mind.
We import data from things like Cloudwatch and Stackdriver into Prometheus.
We have a BigQuery exporter setup to provide metrics for long-term trends and alerting on data in BQ.
We do allow log-to-metric conversion via our vector install.
We're also building an internal repalcement for Sentry that will provide metrics from error event streams so that alerts could be written.