From 3434c5a737b03c7ec621d110eb28b64a2311c6f1 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Mon, 2 Dec 2024 13:33:06 +0100 Subject: [PATCH] fix(dashboards): rename postgresExporter.yaml to .json --- .../configMapGrafanaDashboardPostgresExporter.yaml | 2 +- unittests/configMaps/grafanaDashboardPostgresExporter.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: