WIP:grafana
authorKai Moritz <kai@juplo.de>
Mon, 7 Aug 2023 18:50:05 +0000 (20:50 +0200)
committerKai Moritz <kai@juplo.de>
Mon, 7 Aug 2023 18:50:05 +0000 (20:50 +0200)
grafana/dashboard.yml [new file with mode: 0644]
grafana/datasource.yml [new file with mode: 0644]

diff --git a/grafana/dashboard.yml b/grafana/dashboard.yml
new file mode 100644 (file)
index 0000000..fd66a47
--- /dev/null
@@ -0,0 +1,12 @@
+apiVersion: 1
+
+providers:
+  - name: "Dashboard provider"
+    orgId: 1
+    type: file
+    disableDeletion: false
+    updateIntervalSeconds: 10
+    allowUiUpdates: false
+    options:
+      path: /var/lib/grafana/dashboards
+      foldersFromFilesStructure: true
diff --git a/grafana/datasource.yml b/grafana/datasource.yml
new file mode 100644 (file)
index 0000000..9f63e61
--- /dev/null
@@ -0,0 +1,11 @@
+apiVersion: 1
+
+deleteDatasources:
+  - name: PROMETHEUS
+    orgId: 1
+
+datasources:
+- name: PROMETHEUS
+  type: prometheus
+  url: http://prometheus:9090/
+