mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-18 18:49:05 +02:00
20 lines
495 B
Jsonnet
20 lines
495 B
Jsonnet
{
|
|
prometheusAlerts+:: {
|
|
groups: [
|
|
group {
|
|
rules: [
|
|
if std.objectHas(rule, 'alert') && !(std.objectHas(rule, 'annotations') && std.objectHas(rule.annotations, 'runbook_url')) then
|
|
rule {
|
|
annotations+: {
|
|
runbook_url: $._config.runbookURLPattern % std.asciiLower(rule.alert),
|
|
},
|
|
}
|
|
else rule
|
|
for rule in group.rules
|
|
],
|
|
}
|
|
for group in super.groups
|
|
],
|
|
},
|
|
}
|