diff --git a/templates/prometheus-postgres-exporter/configMapGrafanaDashboardPostgresExporter.yaml b/templates/prometheus-postgres-exporter/configMapGrafanaDashboardPostgresExporter.yaml index c7c77f2..d4e8e10 100644 --- a/templates/prometheus-postgres-exporter/configMapGrafanaDashboardPostgresExporter.yaml +++ b/templates/prometheus-postgres-exporter/configMapGrafanaDashboardPostgresExporter.yaml @@ -14,7 +14,7 @@ metadata: name: {{ include "prometheus-postgres-exporter.fullname" . }}-grafana-dashboard-postgres-exporter namespace: {{ .Release.Namespace }} data: - postgresExporter.yaml: |- + postgresExporter.json: |- {{`{ "__inputs": [ { diff --git a/unittests/configMaps/grafanaDashboardPostgresExporter.yaml b/unittests/configMaps/grafanaDashboardPostgresExporter.yaml index 63bcf2d..b3bcd51 100644 --- a/unittests/configMaps/grafanaDashboardPostgresExporter.yaml +++ b/unittests/configMaps/grafanaDashboardPostgresExporter.yaml @@ -36,7 +36,7 @@ tests: grafana_dashboard: "1" helm.sh/chart: prometheus-postgres-exporter-0.1.0 - exists: - path: data["postgresExporter.yaml"] + path: data["postgresExporter.json"] - it: Test custom annotations and labels set: