Skip to content

Commit 3213ad8

Browse files
committed
refactor: update configuration files for Loki and Prometheus, change file extensions and paths
1 parent 7adce84 commit 3213ad8

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

docker-compose.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
x-logging: &loki-logging
2-
driver: loki
2+
driver: local
33
options:
4-
loki-url: "http://localhost:3100/loki/api/v1/push"
54
max-size: "50m"
65
max-file: "10"
76

7+
# x-logging: &loki-logging
8+
# driver: loki
9+
# options:
10+
# loki-url: "http://localhost:3100/loki/api/v1/push"
11+
# max-size: "50m"
12+
# max-file: "10"
13+
814
services:
915
grafana:
1016
image: grafana/grafana
@@ -28,8 +34,9 @@ services:
2834
ports:
2935
- 9090:9090
3036
volumes:
31-
- ./prometheus/config.yml:/etc/prometheus/config.yml
37+
- ./prometheus/config.yaml:/etc/prometheus/config.yaml
3238
- ./prometheus_data:/etc/prometheus/data
39+
command: -config.file=/etc/prometheus/config.yaml
3340
logging: *loki-logging
3441

3542
node_exporter:
@@ -64,6 +71,6 @@ services:
6471
image: grafana/promtail:latest
6572
volumes:
6673
- /var/log:/var/log
67-
- ./promtail/config.yml:/etc/promtail/config.yml
68-
command: -config.file=/etc/promtail/config.yml
74+
- ./promtail/config.yaml:/etc/promtail/config.yaml
75+
command: -config.file=/etc/promtail/config.yaml
6976
logging: *loki-logging
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)