Add process tooltip to charts

This commit is contained in:
mirivlad 2026-02-14 17:10:52 +00:00
parent ce3ccf6fe9
commit 729e57ceb9
1 changed files with 14 additions and 0 deletions

View File

@ -450,6 +450,20 @@ new Chart(ctx{{ metricName|replace({'-': '_', '.': '_'}) }}, {
y: { y: {
beginAtZero: false beginAtZero: false
} }
},
plugins: {
tooltip: {
enabled: true,
mode: 'index',
intersect: false,
callbacks: {
afterBody: function(context) {
var dataIndex = context[0].dataIndex;
var time = labels{{ metricName }}[dataIndex];
return fetchProcesses({{ server.id }}, time);
}
}
}
} }
} }
}); });