Add websocket statistics

This commit is contained in:
Fornax committed 2020-08-31 18:48:54 +02:00
1 parent cc87a40740
commit 91be276799
2 files changed
+23

No files matched your search

+4
View File
@@ -186,6 +186,10 @@ function getStats(order) {
let c = document.getElementById("tconnstat_body")
c.innerHTML = ""
document.getElementById("file_stats_watchers").innerText = resp.stats_watcher_threads;
document.getElementById("file_stats_listeners").innerText = resp.stats_watcher_listeners;
document.getElementById("file_stats_avg").innerText = resp.stats_watcher_listeners / resp.stats_watcher_threads;
resp.db_connection_stats.forEach(v => {
let row = document.createElement("tr")
row.innerHTML = `\
+19
View File
@@ -58,6 +58,25 @@
</thead>
<tbody id="tconnstat_body"></tbody>
</table>
<h3>Websocket statistics</h3>
<table>
<thead>
<tr>
<td>Watcher</td>
<td>Threads</td>
<td>Listeners</td>
<td>Avg</td>
</tr>
</thead>
<tbody>
<tr>
<td>File statistics</td>
<td id="file_stats_watchers"></td>
<td id="file_stats_listeners"></td>
<td id="file_stats_avg"></td>
</tr>
</tbody>
</table>
<h3>Query statistics</h3>
<table>
<thead>