feat(observability): add Prometheus/Grafana/Loki/Alertmanager/Alloy stack and remove legacy Monitoring UI
This commit is contained in:
@@ -5,7 +5,6 @@ import {
|
||||
fetchCounts,
|
||||
fetchDashboardShortcuts,
|
||||
fetchLibraries,
|
||||
fetchMonitoringOverview,
|
||||
saveDashboardShortcut,
|
||||
} from "../api/client";
|
||||
import type { DashboardShortcutInput } from "../types";
|
||||
@@ -34,14 +33,6 @@ export function useActivity(machineId?: string) {
|
||||
});
|
||||
}
|
||||
|
||||
export function useMonitoringOverview() {
|
||||
return useQuery({
|
||||
queryKey: ["dashboard", "monitoring"],
|
||||
queryFn: fetchMonitoringOverview,
|
||||
refetchInterval: 30_000,
|
||||
});
|
||||
}
|
||||
|
||||
// Backward-compatible alias used by older code.
|
||||
export const useNowPlaying = useActivity;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user