mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 00:47:18 +08:00
54 lines
1.1 KiB
Markdown
54 lines
1.1 KiB
Markdown
|
|
<style>
|
|
.center-image
|
|
{
|
|
margin: 0 auto;
|
|
display: block;
|
|
}
|
|
</style>
|
|
|
|
|
|
{: .center-image }
|
|
|
|
|
|
<h2>
|
|
Hello world
|
|
</h2>
|
|
|
|
<a href="/awesome-prometheus-alerts/alertmanager">
|
|
AlertManager configuration
|
|
</a>
|
|
|
|
<a href="/awesome-prometheus-alerts/sleep-peacefully">
|
|
Alerting time window
|
|
</a>
|
|
|
|
<h2>
|
|
Out of the box prometheus alerting rules
|
|
</h2>
|
|
|
|
<ul>
|
|
{% for group in site.data.rules.groups %}
|
|
<li style="margin-top: 30px;">
|
|
{% 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="/awesome-prometheus-alerts/rules#{{ service.name | replace: " ", "-" | downcase }}">
|
|
{{ service.name }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|