feat(agent-metric): implémentation Phase 3 — métriques système
- Collecte temps réel (1s) : CPU, RAM, charge réseau, top 5 processus - Collecte medium (30min) : disques via sysinfo, températures hwmon, SMART smartctl - Collecte statique (boot) : DMI/BIOS via /sys, interfaces réseau, CPU model - API locale Axum sur :9101 — GET /metrics (réaltime + medium + hardware) - Push backend : /api/v1/metrics (réaltime + medium) et /api/v1/events (hardware, boot) - Architecture modulaire : collectors/realtime, medium, static_info - ROADMAP Phase 3 marquée complète Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user