feat: Zeitreihen der Messwerte in SQLite (Schema 3), einmal pro Minute, 7 Tage Aufbewahrung (#1042)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -31,6 +31,11 @@ pub struct Config {
|
||||
pub metrics_interval_secs: u64,
|
||||
/// Programm für die GPU-Werte.
|
||||
pub nvidia_smi: PathBuf,
|
||||
/// Abstand, in dem Messwerte als Zeitreihe in die Datenbank kommen
|
||||
/// (Sekunden); `0` = nicht speichern.
|
||||
pub metrics_store_secs: u64,
|
||||
/// Wie lange gespeicherte Messwerte bleiben (Tage); `0` = unbegrenzt.
|
||||
pub metrics_retention_days: u32,
|
||||
/// Rohe Einstellungen des llama.cpp-Adapters (Abschnitt `[llama_cpp]`).
|
||||
/// Dieses Crate kennt die Adapter nicht; der Adapter liest die Tabelle selbst.
|
||||
pub llama_cpp: toml::Table,
|
||||
@ -52,6 +57,8 @@ impl Default for Config {
|
||||
engine_log_keep: 3,
|
||||
metrics_interval_secs: 15,
|
||||
nvidia_smi: PathBuf::from("nvidia-smi"),
|
||||
metrics_store_secs: 60,
|
||||
metrics_retention_days: 7,
|
||||
llama_cpp: toml::Table::new(),
|
||||
ollama: toml::Table::new(),
|
||||
maya: toml::Table::new(),
|
||||
|
||||
Reference in New Issue
Block a user