Monitoring Stack: add Prometheus service
This commit is contained in:
parent
364705146d
commit
d8db9966ac
1 changed files with 24 additions and 4 deletions
|
@ -45,6 +45,7 @@ services:
|
|||
loki:
|
||||
image: grafana/loki:3.3.2
|
||||
command: -config.file=/etc/loki/loki-config.yaml
|
||||
volumes:
|
||||
- ${BASE_DIR:-.}/Loki/Config/loki-config.yaml:/etc/loki/loki-config.yaml
|
||||
- ${BASE_DIR:-.}/Loki/Data:/data/loki
|
||||
networks:
|
||||
|
@ -52,10 +53,29 @@ services:
|
|||
ports:
|
||||
- "3100:3100"
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ${BASE_DIR:-.}/Loki/Config/loki-config.yaml:/etc/loki/loki-config.yaml
|
||||
- ${BASE_DIR:-.}/Loki/Data:/data/loki
|
||||
command: -config.file=/etc/loki/loki-config.yaml
|
||||
logging:
|
||||
driver: loki
|
||||
options:
|
||||
loki-url: "http://localhost:3100/loki/api/v1/push"
|
||||
max-size: "200m"
|
||||
|
||||
|
||||
##############################################
|
||||
# Prometheus
|
||||
# Docs: https://prometheus.io/docs/prometheus/latest/
|
||||
# Docker Hub: https://hub.docker.com/r/prom/prometheus
|
||||
##############################################
|
||||
prometheus:
|
||||
image: prom/prometheus:v3.1.0
|
||||
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
|
||||
volumes:
|
||||
- ${BASE_DIR:-.}/Prometheus/Config:/etc/prometheus
|
||||
- ${BASE_DIR:-.}/Prometheus/Data:/prometheus
|
||||
networks:
|
||||
- monitoring
|
||||
ports:
|
||||
- 9000:9090
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: loki
|
||||
options:
|
||||
|
|
Loading…
Add table
Reference in a new issue