/
/
/
1---
2# Monitoring Role Defaults
3# Glances system monitoring via Docker container
4
5# ==============================================================================
6# GENERAL CONFIGURATION
7# ==============================================================================
8monitoring_enabled: true
9
10# ==============================================================================
11# GLANCES CONTAINER CONFIGURATION
12# ==============================================================================
13# Fallback pin. Authoritative: server_automation/group_vars/all/images.yml
14glances_image: "docker.io/nicolargo/glances:4.5.3.2-full"
15glances_container_name: "glances"
16glances_web_port: 61208
17glances_config_dir: "/docker/glances"
18glances_restart_policy: "unless-stopped"
19glances_refresh_rate: 3
20
21# ==============================================================================
22# FEATURE FLAGS
23# ==============================================================================
24
25# GPU monitoring - derives from existing gpu_enabled host variable
26glances_gpu_monitoring: "{{ gpu_enabled | default(false) }}"
27
28# GPU image override - Ubuntu image needed for NVIDIA GPU support
29# Alpine (latest-full) works for non-GPU hosts like Pis
30# Fallback pin. Authoritative: server_automation/group_vars/all/images.yml
31glances_gpu_image: "docker.io/nicolargo/glances:ubuntu-4.5.3.2-full"
32
33# Storage/RAID monitoring - enable on storage hosts
34glances_storage_monitoring: false
35
36# Storage drives to monitor for temperature and SMART health
37# Set per host in the playbook when storage monitoring is enabled
38# Example:
39# glances_storage_drives:
40# - { device: "sda", label: "Disk 1" }
41# - { device: "sdb", label: "Disk 2" }
42glances_storage_drives: []
43
44# Monitored directories - array of {path, description} dicts
45# Example:
46# glances_monitored_directories:
47# - path: "/docker"
48# description: "Docker data"
49# - path: "/mnt/rstorage"
50# description: "RAID storage array"
51glances_monitored_directories: []
52
53# ==============================================================================
54# HOME ASSISTANT INTEGRATION
55# ==============================================================================
56
57# Display name for HA dashboard (defaults to inventory_hostname with hyphens as spaces, title case)
58ha_display_name: "{{ inventory_hostname | replace('-', ' ') | title }}"
59
60# HA entity ID prefix - the Glances integration uses the FQDN (hostname.home)
61# with dots and hyphens converted to underscores
62ha_entity_prefix: "{{ inventory_hostname | replace('-', '_') }}_home"
63
64# Short name used for REST sensor unique_ids and file naming
65ha_integration_name: "{{ inventory_hostname | replace('-', '_') }}"
66
67# Temperature sensor suffix - varies by hardware
68# Pis use cpu_thermal_0_temperature, x86 systems typically use composite_temperature
69ha_temp_entity_suffix: "cpu_thermal_0_temperature"
70
71# HA entity slug for GPU sensors from the native Glances integration
72# The integration uses the full GPU model name in entity IDs, e.g.:
73# nvidia_geforce_rtx_3060_gpu_nvidia0
74# Set per host in the playbook when GPU monitoring is enabled
75ha_gpu_entity_slug: ""
76
77# Icon for the host tile in the overview dashboard
78ha_host_icon: "mdi:server"
79
80# Path on controller where generated HA configs are saved
81ha_generated_dir: "{{ role_path }}/files/homeassistant/generated"
82