mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 00:47:18 +08:00
1.1 KiB
1.1 KiB
Hello world
AlertManager configuration Alerting time windowOut of the box prometheus alerting rules
-
{% for group in site.data.rules.groups %}
-
{% assign nbrRules = 0 %}
{% for service in group.services %}
{% for exporter in service.exporters %}
{% for rule in exporter.rules %}
{% assign nbrRules = nbrRules | plus: 1 %}
{% endfor %}
{% endfor %}
{% endfor %}
<h3>{{ group.name }} <small style="margin-left: 20px;">({{ nbrRules }} rules)</small></h3> <ul> {% for service in group.services %} <li> <a href="/rules#{{ service.name | replace: " ", "-" | downcase }}"> {{ service.name }} </a> </li> {% endfor %} </ul> </li>{% endfor %}
