Skip to content

Commit

Permalink
feat: allow overriding prometheus and promtail configs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomesdev committed Nov 7, 2023
1 parent d845835 commit 98e071b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions server/docker/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
loki-data/
grafana-data/
grafana*.yaml
!grafana.yaml
!grafana.base.yaml
12 changes: 12 additions & 0 deletions server/docker/grafana.base.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: "3"

name: grafana

services:
promtail:
volumes:
- ./config/promtail.yaml:/mnt/config/config.yaml

prometheus:
volumes:
- ./config/prometheus.yaml:/etc/prometheus/prometheus.yml
2 changes: 0 additions & 2 deletions server/docker/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ services:
image: grafana/promtail:2.7.4
command: -config.file=/mnt/config/config.yaml
volumes:
- ./config/promtail.yaml:/mnt/config/config.yaml
- /var/log/rusty-controller:/var/log/rusty-controller
networks:
- grafana
Expand All @@ -39,7 +38,6 @@ services:
ports:
- "9090:9090"
volumes:
- ./config/prometheus.yaml:/etc/prometheus/prometheus.yml
- prom-data:/prometheus
extra_hosts:
- "host.docker.internal:host-gateway"
Expand Down

0 comments on commit 98e071b

Please sign in to comment.