Initial working implementation (MVP)

This commit is contained in:
Martino Ferrari
2026-04-11 21:11:15 +02:00
parent dca378b5ef
commit 1a39b3a54e
35 changed files with 7457 additions and 147 deletions
+7
View File
@@ -125,6 +125,13 @@ offset = 0.0
path = ["vacuum"]
```
## Remote Configuration
The agent allows the UI to read and update its configuration file (`~/.rmon/config.toml`) over the protocol.
- `ClientMessage::GetConfig`: Agent reads the file from disk and sends `AgentMessage::ConfigReport { config_toml }`.
- `ClientMessage::UpdateConfig { config_toml }`: Agent writes the provided string to `~/.rmon/config.toml`. The agent's file watcher detects this change and reloads the sources.
## Source Adapter Trait
All data sources implement: