Revert "modules/monitor: show truncated alerts count"

This reverts commit f1ec49cc58.
This commit is contained in:
xinyangli 2025-04-23 21:35:12 +08:00
parent c8fcf5c520
commit 2d5e443cdc
No known key found for this signature in database

View file

@ -120,12 +120,11 @@ in
webhook_configs = [
{
url = "${ntfyUrl}/prometheus-alerts?tpl=yes&m=${lib.escapeURL ''
{{ if eq .truncatedAlerts 0 }}{{ else }}{{.truncatedAlerts}} truncated
{{end}}{{range .alerts}}{{ if eq .status "resolved" }}{{ else }}{{ if eq .status "firing" }}🔥{{end}}{{end}}{{.labels.alertname}}
{{.annotations.summary}}
{{end}}''}";
{{range .alerts}}{{ if eq .status "resolved" }}{{ else }}{{ if eq .status "firing" }}🔥{{end}}{{end}}{{.labels.alertname}}
{{.annotations.summary}}
{{end}}''}";
send_resolved = true;
max_alerts = 10;
max_alerts = 5;
}
];
}