feat(observability): provision Grafana PostgreSQL datasource
Adds a read-only datasource pointing at archive-db using the grafana_reader role (provisioned by Flyway V68). The password is interpolated from the GRAFANA_DB_PASSWORD env var passed to obs-grafana, and the connection is locked to editable: false so the credential cannot be inspected via the UI. sslmode=disable is intentional: traffic stays inside archiv-net. Refs #651. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -36,3 +36,19 @@ datasources:
|
|||||||
datasourceUid: prometheus
|
datasourceUid: prometheus
|
||||||
nodeGraph:
|
nodeGraph:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
# Read-only PostgreSQL datasource for the PO Overview dashboard (issue #651).
|
||||||
|
# Uses the grafana_reader role provisioned by Flyway V68. Traffic stays inside
|
||||||
|
# archiv-net, so sslmode=disable is the deliberate, accepted setting.
|
||||||
|
- name: PostgreSQL
|
||||||
|
type: postgres
|
||||||
|
uid: postgres
|
||||||
|
url: archive-db:5432
|
||||||
|
user: grafana_reader
|
||||||
|
editable: false
|
||||||
|
secureJsonData:
|
||||||
|
password: ${GRAFANA_DB_PASSWORD}
|
||||||
|
jsonData:
|
||||||
|
database: ${POSTGRES_DB}
|
||||||
|
sslmode: disable
|
||||||
|
postgresVersion: 1600
|
||||||
|
|||||||
Reference in New Issue
Block a user