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:
|
loki:
|
||||||
image: grafana/loki:3.3.2
|
image: grafana/loki:3.3.2
|
||||||
command: -config.file=/etc/loki/loki-config.yaml
|
command: -config.file=/etc/loki/loki-config.yaml
|
||||||
|
volumes:
|
||||||
- ${BASE_DIR:-.}/Loki/Config/loki-config.yaml:/etc/loki/loki-config.yaml
|
- ${BASE_DIR:-.}/Loki/Config/loki-config.yaml:/etc/loki/loki-config.yaml
|
||||||
- ${BASE_DIR:-.}/Loki/Data:/data/loki
|
- ${BASE_DIR:-.}/Loki/Data:/data/loki
|
||||||
networks:
|
networks:
|
||||||
|
@ -52,10 +53,29 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "3100:3100"
|
- "3100:3100"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
logging:
|
||||||
- ${BASE_DIR:-.}/Loki/Config/loki-config.yaml:/etc/loki/loki-config.yaml
|
driver: loki
|
||||||
- ${BASE_DIR:-.}/Loki/Data:/data/loki
|
options:
|
||||||
command: -config.file=/etc/loki/loki-config.yaml
|
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:
|
logging:
|
||||||
driver: loki
|
driver: loki
|
||||||
options:
|
options:
|
||||||
|
|
Loading…
Add table
Reference in a new issue