mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 00:29:40 +02:00
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>
23 lines
508 B
YAML
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
|