From 37f1c76e717425ea587650c809f3906228b235e5 Mon Sep 17 00:00:00 2001 From: Hui Wang Date: Mon, 18 Nov 2024 14:28:16 +0800 Subject: [PATCH] add vlogs type of rule in example (#7548) --- deployment/docker/docker-compose-victorialogs.yml | 2 ++ deployment/docker/rules/vlogs-example-alerts.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deployment/docker/docker-compose-victorialogs.yml b/deployment/docker/docker-compose-victorialogs.yml index c185e2519..3889b0012 100644 --- a/deployment/docker/docker-compose-victorialogs.yml +++ b/deployment/docker/docker-compose-victorialogs.yml @@ -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/" diff --git a/deployment/docker/rules/vlogs-example-alerts.yml b/deployment/docker/rules/vlogs-example-alerts.yml index 7ba25c9ea..8d9368a88 100644 --- a/deployment/docker/rules/vlogs-example-alerts.yml +++ b/deployment/docker/rules/vlogs-example-alerts.yml @@ -1,5 +1,5 @@ groups: - - name: TestGroup + - name: log-rules type: vlogs interval: 1m rules: