diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-20 00:59:15 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-20 00:59:15 +0200 |
| commit | 75cb3e560d5b243c1fc7056574d0242a277ebbd4 (patch) | |
| tree | 1b1df08930d9a2c8f87864fcea0fd91bf6cb254c | |
| parent | 13dc7caa75b7888781589ad754c5ec1ef9773d95 (diff) | |
Update the prometheus/grafana role vars
| -rw-r--r-- | host_vars/rpi5.local.yml | bin | 1209 -> 1852 bytes | |||
| -rw-r--r-- | host_vars/rpi5.local.yml.example | 29 | ||||
| -rw-r--r-- | roles/grafana/defaults/main.yml | 20 |
3 files changed, 30 insertions, 19 deletions
diff --git a/host_vars/rpi5.local.yml b/host_vars/rpi5.local.yml Binary files differindex 90a16fda..60273fbf 100644 --- a/host_vars/rpi5.local.yml +++ b/host_vars/rpi5.local.yml 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: [] |
