Skip to content

Commit fabdf36

Browse files
committed
Add some help strings to Prometheus metrics
Signed-off-by: Kyâne <[email protected]>
1 parent 381b3ff commit fabdf36

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

public/js/lib/common/metrics.ejs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
1+
# HELP online_notes Number of currently used notes
2+
# TYPE online_notes gauge
13
online_notes <%- onlineNotes %>
4+
# HELP online_users Number of online users
5+
# TYPE online_users gauge
26
online_users <%- onlineUsers %>
7+
# HELP distinct_online_users Number of distinct online users
8+
# TYPE distinct_online_users gauge
39
distinct_online_users <%- distinctOnlineUsers %>
10+
# HELP notes_count Total count of notes
11+
# TYPE notes_count gauge
412
notes_count <%- notesCount %>
13+
# HELP registered_users Number of registered users
14+
# TYPE registered_users gauge
515
registered_users <%- registeredUsers %>
16+
# HELP online_registered_users Number of online registered users
17+
# TYPE online_registered_users gauge
618
online_registered_users <%- onlineRegisteredUsers %>
19+
# HELP distinct_online_registered_users Number of distinct online registered users
20+
# TYPE distinct_online_registered_users gauge
721
distinct_online_registered_users <%- distinctOnlineRegisteredUsers %>
822
is_connection_busy <%- isConnectionBusy ? 1 : 0 %>
923
connection_socket_queue_length <%- connectionSocketQueueLength %>

0 commit comments

Comments
 (0)