feat: Zeitreihen für CPU, RAM, GPU-Leistung, Queue-Spitze und Raten aus dem Anfrage-Log, Rollup-Job und Aufbewahrung (#1197, DASH-R2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmHhg7qE8FdhchzsBrwgjZ
This commit is contained in:
@ -44,7 +44,7 @@ const fn r(
|
||||
}
|
||||
}
|
||||
|
||||
use Aggregation::{Max, Mittel, Summe};
|
||||
use Aggregation::{Max, Mittel};
|
||||
|
||||
static REIHEN: &[ReiheInfo] = &[
|
||||
r("gpu_speicher_mb", "MB", Mittel, "GPU-Speicher"),
|
||||
@ -55,8 +55,8 @@ static REIHEN: &[ReiheInfo] = &[
|
||||
r("cpu_auslastung_prozent", "%", Mittel, "CPU-Auslastung"),
|
||||
r("ram_belegt_mb", "MB", Mittel, "RAM belegt"),
|
||||
r("queue_laenge", "Anzahl", Max, "Warteschlange"),
|
||||
r("anfragen_pro_min", "1/min", Summe, "Anfragen pro Minute"),
|
||||
r("fehler_pro_min", "1/min", Summe, "Fehler pro Minute"),
|
||||
r("anfragen_pro_min", "1/min", Mittel, "Anfragen pro Minute"),
|
||||
r("fehler_pro_min", "1/min", Mittel, "Fehler pro Minute"),
|
||||
r("durchsatz_tokens_s", "Tokens/s", Mittel, "Durchsatz"),
|
||||
];
|
||||
|
||||
@ -87,7 +87,7 @@ mod tests {
|
||||
let q = reihe_info("queue_laenge").unwrap();
|
||||
assert_eq!((q.einheit, q.aggregation), ("Anzahl", Aggregation::Max));
|
||||
let a = reihe_info("anfragen_pro_min").unwrap();
|
||||
assert_eq!((a.einheit, a.aggregation), ("1/min", Aggregation::Summe));
|
||||
assert_eq!((a.einheit, a.aggregation), ("1/min", Aggregation::Mittel));
|
||||
assert_eq!(
|
||||
reihe_info("gpu_speicher_mb").unwrap().aggregation,
|
||||
Aggregation::Mittel
|
||||
|
||||
Reference in New Issue
Block a user