Skip to content

Commit

Permalink
Merge pull request #1625 from pichouk/develop
Browse files Browse the repository at this point in the history
Add some help strings to Prometheus metrics
  • Loading branch information
Yukaii committed May 11, 2021
2 parents 94473c2 + fabdf36 commit 025f6d2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions public/js/lib/common/metrics.ejs
Original file line number Diff line number Diff line change
@@ -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 %>
Expand Down

0 comments on commit 025f6d2

Please sign in to comment.