mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01:00
14 lines
518 B
YAML
14 lines
518 B
YAML
groups:
|
|
- name: log-rules
|
|
type: vlogs
|
|
interval: 1m
|
|
rules:
|
|
- record: logCount
|
|
expr: '_time: 1m | stats by (path) count () as total'
|
|
annotations:
|
|
description: "path {{$labels.path}} generated {{$value}} logs in the last 1 minute"
|
|
- alert: tooManyLogs
|
|
expr: '_time: 1m | stats by (path) count () as total | filter total:>50'
|
|
annotations:
|
|
description: "path {{$labels.path}} generated more than 50 log entries in the last 1 minute: {{$value}}"
|