Skip to content

Commit 2b525ba

Browse files
committed
adding rules files
1 parent f653c1b commit 2b525ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

grafana_v2/kickstart_v2/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
- alertmanager
66
volumes:
77
- ./prometheus.yml:/etc/prometheus/prometheus.yml
8-
- ../../prometheus_v2/rules/alerts.yml
8+
- ../../prometheus_v2/rules/alerts.yml:/etc/prometheus/rules/alerts.yml
99
ports:
1010
- "9090:9090"
1111
networks:

grafana_v2/kickstart_v2/prometheus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ alerting:
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)