gilles f0a071e83a feat(backend): historique, SSE et Prometheus — Phase 6
- Migration 002 : table metrics_history (index agent_id/timestamp)
- AppState : broadcast channels (metrics_tx, network_tx) + FromRef<SqlitePool>
- GET /api/v1/history/{agent_id}?hours=N : série temporelle, rétention 7 jours
- POST /api/v1/metrics : écrit dans history + broadcast SSE
- GET /api/v1/stream : Server-Sent Events (events metrics + network)
- GET /metrics : endpoint Prometheus text/plain (CPU, RAM, disque, temp, réseau)
- Bump version API 0.2.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 06:30:34 +02:00

SentinelMesh

Plateforme modulaire de supervision d'infrastructure orientée homelab et self-hosting.

Composants

Composant Description
backend/ API centrale Rust (Axum + Tokio + SQLite)
agents/agent-scan-network/ Daemon Rust de découverte réseau
agents/agent-metric/ Daemon Rust de collecte de métriques système
widgets/widget-network-scan/ Widget Glance — équipements réseau
widgets/widget-agent-metrics/ Widget Glance — métriques système
install/ Scripts d'installation et de mise à jour

Démarrage rapide

# Lancer le backend (développement)
cd backend && cargo run

# Lancer un agent
cd agents/agent-scan-network && cargo run

# Stack complète
docker compose up -d

Intégration Glance

- type: custom-api
  title: SentinelMesh — Réseau
  cache: 30s
  url: http://sentinelmesh:8080/api/v1/widgets/network

- type: custom-api
  title: SentinelMesh — Métriques
  cache: 1s
  url: http://sentinelmesh:8080/api/v1/widgets/metrics

Documentation

S
Description
No description provided
Readme 406 KiB
Languages
Rust 83.7%
Shell 9.4%
Dockerfile 4.5%
CSS 2.4%