X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fcharm%2Fgrafana%2Fsrc%2Fcharm.py;h=87776aa9dbc0f9d4ff964ec211e10975708392fa;hb=d680be4f261d4c580fcdf75abe11cfc29003915d;hp=9bc612e0cc00bb40ca04cb9ddd75630c38929996;hpb=3ddbbd1f6c70306d13db0976e1e6b3bda0c69abd;p=osm%2Fdevops.git diff --git a/installers/charm/grafana/src/charm.py b/installers/charm/grafana/src/charm.py index 9bc612e0..87776aa9 100755 --- a/installers/charm/grafana/src/charm.py +++ b/installers/charm/grafana/src/charm.py @@ -108,15 +108,15 @@ class GrafanaCharm(CharmedOsmBase): files_builder = FilesV3Builder() files_builder.add_file( "dashboard_osm.yaml", - Path("files/default_dashboards.yaml").read_text(), + Path("templates/default_dashboards.yaml").read_text(), ) if config.osm_dashboards: osm_dashboards_mapping = { - "kafka_exporter_dashboard.json": "files/kafka_exporter_dashboard.json", - "mongodb_exporter_dashboard.json": "files/mongodb_exporter_dashboard.json", - "mysql_exporter_dashboard.json": "files/mysql_exporter_dashboard.json", - "nodes_exporter_dashboard.json": "files/nodes_exporter_dashboard.json", - "summary_dashboard.json": "files/summary_dashboard.json", + "kafka_exporter_dashboard.json": "templates/kafka_exporter_dashboard.json", + "mongodb_exporter_dashboard.json": "templates/mongodb_exporter_dashboard.json", + "mysql_exporter_dashboard.json": "templates/mysql_exporter_dashboard.json", + "nodes_exporter_dashboard.json": "templates/nodes_exporter_dashboard.json", + "summary_dashboard.json": "templates/summary_dashboard.json", } for file_name, path in osm_dashboards_mapping.items(): files_builder.add_file(file_name, Path(path).read_text()) @@ -126,7 +126,7 @@ class GrafanaCharm(CharmedOsmBase): files_builder = FilesV3Builder() files_builder.add_file( "datasource_prometheus.yaml", - Template(Path("files/default_datasources.yaml").read_text()).substitute( + Template(Path("templates/default_datasources.yaml").read_text()).substitute( prometheus_host=self.prometheus_client.hostname, prometheus_port=self.prometheus_client.port, ),