Changed the level type in alerts.yml for TooManyLogs alert (#2760)

alerts: filter out non error log messages for `TooManyLogs`

Info and Warn error levels aren't always a result of malfunctioning
or faulty state. So we filter them out.
This commit is contained in:
Yurii Kravets 2022-06-20 17:44:47 +03:00 committed by GitHub
parent 3837b50f37
commit aeeaf877ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,7 +125,7 @@ groups:
When VictoriaMetrics constantly hits the limit it means that storage is overloaded and requires more CPU." When VictoriaMetrics constantly hits the limit it means that storage is overloaded and requires more CPU."
- alert: TooManyLogs - alert: TooManyLogs
expr: sum(increase(vm_log_messages_total{level!="info"}[5m])) by (job, instance) > 0 expr: sum(increase(vm_log_messages_total{level="error"}[5m])) by (job, instance) > 0
for: 15m for: 15m
labels: labels:
severity: warning severity: warning