Add websocket statistics
This commit is contained in:
@@ -186,6 +186,10 @@ function getStats(order) {
|
|||||||
let c = document.getElementById("tconnstat_body")
|
let c = document.getElementById("tconnstat_body")
|
||||||
c.innerHTML = ""
|
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 => {
|
resp.db_connection_stats.forEach(v => {
|
||||||
let row = document.createElement("tr")
|
let row = document.createElement("tr")
|
||||||
row.innerHTML = `\
|
row.innerHTML = `\
|
||||||
|
@@ -58,6 +58,25 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody id="tconnstat_body"></tbody>
|
<tbody id="tconnstat_body"></tbody>
|
||||||
</table>
|
</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>
|
<h3>Query statistics</h3>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
|
Reference in New Issue
Block a user