Prereq for the wave-1 decommission. The cutover moved paperless+teslamate (postgres) and mealie (SQLite) to ringtail, but borgmatic and the Grafana TeslaMate datasource still pointed at the minikube copies — the migrated live data was unbacked since cutover, and dropping the minikube DBs would break the TeslaMate dashboards. - Tailscale Service `blumeops-pg-ringtail` + Caddy L4 route `pg.ops.eblu.me:5434` - borgmatic: teslamate + paperless postgres → :5434; mealie SQLite → ssh:eblume@ringtail - Grafana TeslaMate datasource → pg.ops.eblu.me:5434 Deploy: sync databases-ringtail (tailscale svc) + grafana from branch; provision-indri --tags caddy,borgmatic; verify a backup run + dashboards. Unblocks the decommission PR. Reviewed-on: #364
69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
apiVersion: 1
|
|
datasources:
|
|
- access: proxy
|
|
editable: false
|
|
isDefault: true
|
|
name: Prometheus
|
|
orgId: 1
|
|
type: prometheus
|
|
uid: prometheus
|
|
url: http://prometheus.monitoring.svc.cluster.local:9090
|
|
- access: proxy
|
|
editable: false
|
|
name: Loki
|
|
orgId: 1
|
|
type: loki
|
|
uid: loki
|
|
url: http://loki.monitoring.svc.cluster.local:3100
|
|
jsonData:
|
|
derivedFields:
|
|
- datasourceUid: tempo
|
|
matcherRegex: '"traceID":"(\w+)"'
|
|
name: TraceID
|
|
url: "$${__value.raw}"
|
|
- access: proxy
|
|
editable: false
|
|
name: Tempo
|
|
orgId: 1
|
|
type: tempo
|
|
uid: tempo
|
|
url: http://tempo.monitoring.svc.cluster.local:3200
|
|
jsonData:
|
|
tracesToLogsV2:
|
|
datasourceUid: loki
|
|
filterByTraceID: true
|
|
filterBySpanID: false
|
|
tracesToMetrics:
|
|
datasourceUid: prometheus
|
|
spanStartTimeShift: "-1h"
|
|
spanEndTimeShift: "1h"
|
|
queries:
|
|
- name: Request rate
|
|
query: "sum(rate(traces_spanmetrics_calls_total{$$__tags}[5m]))"
|
|
- name: Error rate
|
|
query: "sum(rate(traces_spanmetrics_calls_total{$$__tags, status_code=\"STATUS_CODE_ERROR\"}[5m]))"
|
|
- name: Duration (p95)
|
|
query: "histogram_quantile(0.95, sum(rate(traces_spanmetrics_duration_seconds_bucket{$$__tags}[5m])) by (le))"
|
|
serviceMap:
|
|
datasourceUid: prometheus
|
|
nodeGraph:
|
|
enabled: true
|
|
- access: proxy
|
|
database: teslamate
|
|
editable: false
|
|
jsonData:
|
|
database: teslamate
|
|
connMaxLifetime: 14400
|
|
maxIdleConns: 2
|
|
maxOpenConns: 5
|
|
sslmode: disable
|
|
name: TeslaMate
|
|
orgId: 1
|
|
secureJsonData:
|
|
password: $TESLAMATE_DB_PASSWORD
|
|
type: postgres
|
|
uid: TeslaMate
|
|
# teslamate DB migrated to ringtail blumeops-pg (wave-1); reached via the
|
|
# Caddy L4 route on indri (pg.ops.eblu.me:5434 -> blumeops-pg-ringtail).
|
|
url: pg.ops.eblu.me:5434
|
|
user: teslamate
|