Added different intervals for collectors and made them configurable.
This commit is contained in:
@@ -1,8 +1,54 @@
|
||||
# MQTT Configuration
|
||||
mqtt:
|
||||
# MQTT Broker Address
|
||||
host: "mqtt.example.com"
|
||||
|
||||
# MQTT Port (Default: 1883 for unencrypted, 8883 for TLS)
|
||||
port: 1883
|
||||
username: "system2mqtt"
|
||||
password: "your_secure_password"
|
||||
|
||||
# MQTT Username
|
||||
username: "your_username"
|
||||
|
||||
# MQTT Password
|
||||
password: "your_password"
|
||||
|
||||
# MQTT Client ID (will be extended with hostname)
|
||||
client_id: "system2mqtt_{hostname}"
|
||||
|
||||
# Home Assistant Discovery Prefix
|
||||
discovery_prefix: "homeassistant"
|
||||
state_prefix: "system2mqtt"
|
||||
|
||||
# MQTT State Prefix for sensors
|
||||
state_prefix: "system2mqtt"
|
||||
|
||||
# Collector Configuration
|
||||
collectors:
|
||||
# Default interval for all collectors (in seconds)
|
||||
# Used when no specific interval is defined
|
||||
default_interval: 60
|
||||
|
||||
# Specific intervals for individual collectors
|
||||
# These override the collector's default intervals
|
||||
intervals:
|
||||
# ZFS Pools are updated every 5 minutes
|
||||
zfs_pools: 300
|
||||
|
||||
# CPU Temperature is updated every 30 seconds
|
||||
cpu_temperature: 30
|
||||
|
||||
# System Metrics are updated every minute
|
||||
system_metrics: 60
|
||||
|
||||
# Notes:
|
||||
# 1. The default intervals for collectors are:
|
||||
# - zfs_pools: 300 seconds (5 minutes)
|
||||
# - cpu_temperature: 30 seconds
|
||||
# - system_metrics: 60 seconds (1 minute)
|
||||
#
|
||||
# 2. These intervals can be overridden here
|
||||
#
|
||||
# 3. If no specific interval is defined, the collector's
|
||||
# default interval will be used
|
||||
#
|
||||
# 4. If no default interval is defined in the collector,
|
||||
# the global default_interval will be used
|
Reference in New Issue
Block a user