6bda1a2b59
- 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>
18 lines
546 B
TOML
18 lines
546 B
TOML
[package]
|
|
name = "agent-metric"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
tokio = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
axum = "0.8"
|
|
serde_yaml = "0.9"
|
|
reqwest = { version = "0.12", features = ["json"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
sysinfo = "0.32"
|