mirror of
https://github.com/hanzoai/metrics.git
synced 2026-10-30 20:03:39 +00:00
address https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6706. See https://github.com/VictoriaMetrics/VictoriaMetrics/blob/vmalert-support-vlog-ds/docs/VictoriaLogs/vmalert.md. Related fix https://github.com/VictoriaMetrics/VictoriaMetrics/pull/7254. Note: in this pull request, vmalert doesn't support [backfilling](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/vmalert-support-vlog-ds/docs/VictoriaLogs/vmalert.md#rules-backfilling) for rules with a customized time filter. It might be added in the future, see [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7289) for details. Feature can be tested with image `victoriametrics/vmalert:heads-vmalert-support-vlog-ds-0-g420629c-scratch`. --------- Signed-off-by: hagen1778 <[email protected]> Co-authored-by: hagen1778 <[email protected]>
11 lines
221 B
Plaintext
11 lines
221 B
Plaintext
groups:
|
|
- name: InvalidStatsLogsql
|
|
type: vlogs
|
|
interval: 5m
|
|
rules:
|
|
- record: MissingFilter
|
|
expr: 'stats count(*) as requests'
|
|
- record: MissingStatsPipe
|
|
expr: 'service: "nginx"'
|
|
|