summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-09-20 00:59:15 +0200
committerAhmed Abdelhalim <[email protected]>2025-09-20 00:59:15 +0200
commit75cb3e560d5b243c1fc7056574d0242a277ebbd4 (patch)
tree1b1df08930d9a2c8f87864fcea0fd91bf6cb254c
parent13dc7caa75b7888781589ad754c5ec1ef9773d95 (diff)
Update the prometheus/grafana role vars
-rw-r--r--host_vars/rpi5.local.ymlbin1209 -> 1852 bytes
-rw-r--r--host_vars/rpi5.local.yml.example29
-rw-r--r--roles/grafana/defaults/main.yml20
3 files changed, 30 insertions, 19 deletions
diff --git a/host_vars/rpi5.local.yml b/host_vars/rpi5.local.yml
index 90a16fda..60273fbf 100644
--- a/host_vars/rpi5.local.yml
+++ b/host_vars/rpi5.local.yml
Binary files differ
diff --git a/host_vars/rpi5.local.yml.example b/host_vars/rpi5.local.yml.example
index 7bfa08e7..bfc05d83 100644
--- a/host_vars/rpi5.local.yml.example
+++ b/host_vars/rpi5.local.yml.example
@@ -33,3 +33,32 @@ wireguard_connections:
gateway_enabled: true
gateway_router_interface: "{{ network_interface }}"
gateway_local_ipv4_subnet: "10.0.0.0/24"
+
+prometheus_host: "localhost"
+prometheus_port: 9090
+prometheus_retention: "15d"
+prometheus_scrape_interval: "15s"
+prometheus_node_exporter_port: 9100
+grafana_port: 3000
+grafana_admin_user: "admin"
+grafana_admin_password: "changeme"
+grafana_database_type: "sqlite3"
+grafana_dashboards:
+ - id: 1860
+ revision: 37
+ name: "node-exporter-full"
+ datasource_mappings:
+ - key: "000000001"
+ value: "prometheus"
+ - id: 3662
+ revision: 2
+ name: "prometheus-overview"
+ datasource_mappings:
+ - key: "${DS_THEMIS}"
+ value: "prometheus"
+ - id: 11074
+ revision: 9
+ name: "node-exporter-prometheus"
+ datasource_mappings:
+ - key: "${DS__VICTORIAMETRICS}"
+ value: "prometheus"
diff --git a/roles/grafana/defaults/main.yml b/roles/grafana/defaults/main.yml
index 4e0e5614..e61aeded 100644
--- a/roles/grafana/defaults/main.yml
+++ b/roles/grafana/defaults/main.yml
@@ -10,22 +10,4 @@ grafana_datasources:
url: "http://localhost:9090"
default: true
-grafana_dashboards:
- - id: 1860
- revision: 37
- name: "node-exporter-full"
- datasource_mappings:
- - key: "000000001"
- value: "prometheus"
- - id: 3662
- revision: 2
- name: "prometheus-overview"
- datasource_mappings:
- - key: "${DS_THEMIS}"
- value: "prometheus"
- - id: 11074
- revision: 9
- name: "node-exporter-prometheus"
- datasource_mappings:
- - key: "${DS__VICTORIAMETRICS}"
- value: "prometheus"
+grafana_dashboards: []