rename /graphs route to /metrics

This commit is contained in:
Girish Ramakrishnan
2025-05-21 16:26:36 +02:00
parent 3770f07720
commit 8779de448d
10 changed files with 31 additions and 29 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ function fillGraph(element, contents, chartPropertyName, divisor, max, format, f
async function refresh() {
busy.value = true;
const [error,result] = await appsModel.graphs(app.id, { fromSecs: period.value * 60 * 60, intervalSecs: 300 });
const [error,result] = await appsModel.getMetrics(app.id, { fromSecs: period.value * 60 * 60, intervalSecs: 300 });
if (error) return console.error(error);
blockReadTotal.value = (result.blockReadTotal / ioDivisor / 1000).toFixed(2) + ' MB';