a log storage platform
This commit is contained in:
oliver 2024-10-10 22:42:21 +00:00
parent 01af77e01f
commit cd4854f2c6
3 changed files with 25 additions and 1 deletions

View File

@ -21,3 +21,6 @@
reverse_proxy grafana:3000
}
:3100 {
reverse_proxy loki:3100
}

View File

@ -4,14 +4,18 @@ services:
image: caddy:latest
restart: unless-stopped
ports:
# HTTP
- 80:80
- 443:443
- '443:443/udp'
# Grafana
- 3000:3000
# Loki
- 3100:3100
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
# metrics collector
# Metrics collector
prometheus:
image: prom/prometheus:latest
expose:
@ -24,6 +28,12 @@ services:
- caddy
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
loki:
image: grafana/loki:2.9.2
expose:
- 3100
command: -config.file=/etc/loki/local-config.yaml
# log viewer
grafana:
image: grafana/grafana:latest
@ -35,6 +45,8 @@ services:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_FEATURE_TOGGLES_ENABLE=traceqlEditor
expose:
- 3000
depends_on:
- prometheus

View File

@ -13,3 +13,12 @@ datasources:
editable: false
jsonData:
httpMethod: GET
- name: Loki
type: loki
access: proxy
orgId: 1
url: http://loki:3100
basicAuth: false
isDefault: false
version: 1
editable: false