Skip to content

Commit 14c94cd

Browse files
committed
adding rules to demo
1 parent 6b097f6 commit 14c94cd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

grafana_v2/demo_v2/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ services:
33
image: prom/prometheus:latest
44
volumes:
55
- ./prometheus.yml:/etc/prometheus/prometheus.yml
6+
- ../../prometheus_v2/rules/alerts.yml:/etc/prometheus/rules/alerts.yml
67
ports:
78
- "9090:9090"
89
networks:

grafana_v2/demo_v2/prometheus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ global:
1313

1414
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
1515
rule_files:
16-
# - "first_rules.yml"
16+
- "/etc/prometheus/rules/alerts.yml"
1717
# - "second_rules.yml"
1818

1919
# A scrape configuration containing exactly one endpoint to scrape:

0 commit comments

Comments
 (0)