feat: Interface-Durchsatz-Chart — Backend berechnet RX/TX-Rate (bps), Frontend zeigt Dual-Sparkline per Klick auf Interface

This commit is contained in:
cynfo3000
2026-03-06 22:00:33 +01:00
parent eb5266f848
commit 9cb504fea1
3 changed files with 137 additions and 43 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ func (h *Handler) getMetrics() http.HandlerFunc {
}
}
results, err := h.db.GetMetrics(agentID, metric, from, to, limit)
tagsFilter := r.URL.Query().Get("tags")
results, err := h.db.GetMetrics(agentID, metric, tagsFilter, from, to, limit)
if err != nil {
writeError(w, http.StatusInternalServerError, "Metriken laden fehlgeschlagen")
return