add vlogs type of rule in example (#7548)

This commit is contained in:
Hui Wang 2024-11-18 14:28:16 +08:00 committed by f41gh7
parent 0babe43391
commit aa817602fa
No known key found for this signature in database
GPG key ID: 4558311CF775EC72
2 changed files with 3 additions and 1 deletions

View file

@ -104,6 +104,8 @@ services:
- ./rules/alerts-health.yml:/etc/alerts/alerts-health.yml
- ./rules/alerts-vmagent.yml:/etc/alerts/alerts-vmagent.yml
- ./rules/alerts-vmalert.yml:/etc/alerts/alerts-vmalert.yml
# vlogs rule
- ./rules/vlogs-example-alerts.yml:/etc/alerts/vlogs-example-alerts.yml
command:
- "--datasource.url=http://vmauth:8427/"
- "--remoteRead.url=http://victoriametrics:8428/"

View file

@ -1,5 +1,5 @@
groups:
- name: TestGroup
- name: log-rules
type: vlogs
interval: 1m
rules: