Add loki and alloy for log monitoring
This commit is contained in:
@@ -19,3 +19,8 @@ ALERTMANAGER_CONFIG_PATH=
|
||||
ALERTMANAGER_DATA_DIR=
|
||||
|
||||
BLACKBOX_CONFIG_PATH=
|
||||
|
||||
LOKI_CONFIG_PATH=
|
||||
LOKI_DATA_DIR=
|
||||
|
||||
ALLOY_CONFIG_PATH=
|
||||
|
||||
@@ -40,6 +40,26 @@ services:
|
||||
depends_on:
|
||||
- prometheus
|
||||
|
||||
loki:
|
||||
image: grafana/loki:3.6.3
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3100:3100"
|
||||
volumes:
|
||||
- ${LOKI_CONFIG_PATH}:/etc/loki/local-config.yaml
|
||||
- ${LOKI_DATA_DIR}:/loki
|
||||
command:
|
||||
- '-config.file=/etc/loki/local-config.yaml -target=all'
|
||||
|
||||
alloy:
|
||||
image: grafana/alloy:1.12.2
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "12345:12345"
|
||||
volumes:
|
||||
- ${ALLOY_CONFIG_PATH}:/etc/alloy/config.alloy:ro
|
||||
- /var/log:/var/log:ro
|
||||
|
||||
# Node Exporter - Host System Metrics
|
||||
node_exporter:
|
||||
image: prom/node-exporter:v1.10.2
|
||||
|
||||
Reference in New Issue
Block a user