[payslip-ingest] Move Payslips datasource 'database' into jsonData
Grafana 11.2+ Postgres plugin reads the DB name from jsonData.database (see grafana/grafana#112418). The top-level 'database' field is silently ignored by the frontend — datasource health checks and POST /api/ds/query still work because the backend honors it, but every dashboard panel fails with 'you do not have default database'. Rolling back to the supported shape fixes rendering for all 4 uk-payslip panels.
This commit is contained in:
parent
f6cff262f0
commit
cc56ba2939
1 changed files with 11 additions and 7 deletions
|
|
@ -312,14 +312,18 @@ resource "kubernetes_config_map" "grafana_payslips_datasource" {
|
|||
"payslips-datasource.yaml" = yamlencode({
|
||||
apiVersion = 1
|
||||
datasources = [{
|
||||
name = "Payslips"
|
||||
type = "postgres"
|
||||
access = "proxy"
|
||||
url = "${var.postgresql_host}:5432"
|
||||
database = "payslip_ingest"
|
||||
user = "payslip_ingest"
|
||||
uid = "payslips-pg"
|
||||
name = "Payslips"
|
||||
type = "postgres"
|
||||
access = "proxy"
|
||||
url = "${var.postgresql_host}:5432"
|
||||
user = "payslip_ingest"
|
||||
uid = "payslips-pg"
|
||||
# Grafana 11.2+ Postgres plugin reads the DB name from jsonData.database;
|
||||
# the top-level `database` field is silently ignored by the frontend and
|
||||
# triggers "you do not have default database" on every panel.
|
||||
# See github.com/grafana/grafana#112418.
|
||||
jsonData = {
|
||||
database = "payslip_ingest"
|
||||
sslmode = "disable"
|
||||
postgresVersion = 1600
|
||||
timescaledb = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue