![]() ![]() ![]() To understand the distinction between templating custom labels and annotations and notification templates, we first need to understand what labels and annotations are and why they are critical in Prometheus-like alerting systems. You template custom labels and annotations in the alert generator and template notifications in the alert receiver. Prometheus is an alert generator and is responsible for evaluating rules, while Alertmanager is an alert receiver and is responsible for grouping, inhibiting, silencing, and sending notifications about firing and resolved alerts. In Prometheus-based alerting systems, you have an alert generator that creates alerts and an alert receiver that receives alerts. Understanding Prometheus-based alerting systems Lastly, we’ll look at four examples you can use when setting up your own alerts. We’ll also explore the differences between templating custom labels and annotations and notification templates, including when to use one or the other. We’ll look at how Prometheus-based alerting systems work and how it relates to templating alerts. In this blog post, we’ll attempt to clear up some of the confusion. However, the confusion is understandable for those who aren’t already familiar with the Prometheus model of designing alerting systems, which Grafana Alerting is based on. Many users confuse the two, despite being separate features with different use cases. In Grafana, you can template information about your alerts with custom labels and annotations, and you can also template how notifications look and what information they contain with notification templates. We often see questions about how to template alerts. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |