6cd910dbc0
- mqtt.rs : publication résumé scan sur sentinelmesh/<host>/network/scan - Config MQTT dans les deux agents (enabled: false par défaut) - ROADMAP Phase 6 complète : SSE, historique, Prometheus, MQTT ✅ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
828 B
YAML
28 lines
828 B
YAML
backend:
|
|
url: http://localhost:8080
|
|
token: ""
|
|
|
|
agent:
|
|
id: "" # auto-généré : metric-<hostname>
|
|
hostname: "" # auto-détecté depuis /etc/hostname
|
|
|
|
intervals:
|
|
realtime_ms: 1000 # CPU, RAM, réseau, charge
|
|
medium_s: 1800 # disques, températures, SMART
|
|
# DMI/hardware collecté au démarrage puis toutes les 12h
|
|
|
|
api:
|
|
listen: "0.0.0.0:9101"
|
|
|
|
# MQTT optionnel (Home Assistant, Node-RED, Grafana…)
|
|
mqtt:
|
|
enabled: false
|
|
broker: "localhost"
|
|
port: 1883
|
|
topic_prefix: "sentinelmesh"
|
|
client_id: "" # auto : sentinelmesh-metric-<hostname>
|
|
# Topics publiés :
|
|
# sentinelmesh/<hostname>/metrics/realtime (JSON, chaque seconde)
|
|
# sentinelmesh/<hostname>/metrics/medium (JSON, toutes les 30min)
|
|
# sentinelmesh/<hostname>/events (JSON, boot/shutdown…)
|