Add some help strings to Prometheus metrics

Signed-off-by: Kyâne <kyane@kyane.fr>
This commit is contained in:
Kyâne 2020-11-19 16:53:06 +01:00
parent 381b3ff78e
commit fabdf36b52
No known key found for this signature in database
GPG Key ID: 64EC87B8106D811D
1 changed files with 14 additions and 0 deletions

View File

@ -1,9 +1,23 @@
# HELP online_notes Number of currently used notes
# TYPE online_notes gauge
online_notes <%- onlineNotes %>
# HELP online_users Number of online users
# TYPE online_users gauge
online_users <%- onlineUsers %>
# HELP distinct_online_users Number of distinct online users
# TYPE distinct_online_users gauge
distinct_online_users <%- distinctOnlineUsers %>
# HELP notes_count Total count of notes
# TYPE notes_count gauge
notes_count <%- notesCount %>
# HELP registered_users Number of registered users
# TYPE registered_users gauge
registered_users <%- registeredUsers %>
# HELP online_registered_users Number of online registered users
# TYPE online_registered_users gauge
online_registered_users <%- onlineRegisteredUsers %>
# HELP distinct_online_registered_users Number of distinct online registered users
# TYPE distinct_online_registered_users gauge
distinct_online_registered_users <%- distinctOnlineRegisteredUsers %>
is_connection_busy <%- isConnectionBusy ? 1 : 0 %>
connection_socket_queue_length <%- connectionSocketQueueLength %>