grafana: provision Loki/Prometheus datasources + log dashboards
Bind two ready-to-use dashboards at grafana.t4t-gateway.com: - Logs — All services: per-service log volume timeseries + live tail, with a service selector and a free-text search box. - Hosted-gateway API — errors & PSS inbox: error rate, ack/deliver counters, and a live tail filtered to PSS inbox traffic so the webhook fallback is observable. Datasources + dashboard providers are mounted via Docker configs from hostinger/grafana/ so they survive grafana container restarts and live in git rather than the Grafana UI. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
9b58c2e76e
commit
7fcd9df9d3
5 files changed
+209
No files matched your search
@@ -29,6 +29,14 @@ configs:
|
||||
file: ./loki.yaml
|
||||
prometheus_config:
|
||||
file: ./prometheus.yml
|
||||
grafana_datasources:
|
||||
file: ./grafana/datasources.yaml
|
||||
grafana_dashboard_providers:
|
||||
file: ./grafana/dashboards.yaml
|
||||
grafana_dashboard_logs:
|
||||
file: ./grafana/dashboards/logs-overview.json
|
||||
grafana_dashboard_api:
|
||||
file: ./grafana/dashboards/api-errors.json
|
||||
|
||||
|
||||
services:
|
||||
@@ -103,6 +111,15 @@ services:
|
||||
- internal
|
||||
volumes:
|
||||
- grafana-data:/var/lib/grafana
|
||||
configs:
|
||||
- source: grafana_datasources
|
||||
target: /etc/grafana/provisioning/datasources/datasources.yaml
|
||||
- source: grafana_dashboard_providers
|
||||
target: /etc/grafana/provisioning/dashboards/dashboards.yaml
|
||||
- source: grafana_dashboard_logs
|
||||
target: /etc/grafana/dashboards/logs-overview.json
|
||||
- source: grafana_dashboard_api
|
||||
target: /etc/grafana/dashboards/api-errors.json
|
||||
environment:
|
||||
- GF_AUTH_DISABLE_LOGIN_FORM=true
|
||||
- GF_AUTH_ANONYMOUS_ENABLED=true
|
||||
|
||||
Reference in new issue
Block a user