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