managarten/docker/grafana/provisioning/datasources/deploy-tracking.yml
Till JS 3f91c4656a feat(infra): add deploy tracking with PostgreSQL, Pushgateway & Grafana dashboard
Instrument the CD pipeline to record per-deploy and per-service metrics
(build time, image size, startup time, health status) into PostgreSQL and
push gauges to Pushgateway. Adds a Grafana dashboard with 13 panels covering
deploy frequency, build performance, service health, and history.

New files:
- scripts/mac-mini/init-deploy-tracking.sql (idempotent DDL)
- scripts/deploy-metrics.sh (bash library for CI)
- docker/grafana/provisioning/datasources/deploy-tracking.yml
- docker/grafana/dashboards/deploy-tracking.json

Modified:
- docker/prometheus/prometheus.yml (pushgateway scrape job)
- .github/workflows/cd-macmini.yml (build/health instrumentation)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 17:08:03 +01:00

23 lines
508 B
YAML

# Deploy Tracking PostgreSQL Datasource
# Queries deploy_tracking schema in the mana database
apiVersion: 1
datasources:
- name: DeployTracking
type: postgres
access: proxy
url: postgres:5432
user: postgres
secureJsonData:
password: ${POSTGRES_PASSWORD}
jsonData:
database: mana
sslmode: disable
maxOpenConns: 5
maxIdleConns: 2
connMaxLifetime: 14400
postgresVersion: 1600
timescaledb: false
isDefault: false
editable: true