codimd/public/js/lib/common/metrics.ejs
tarlety 09eb8556db
Exporting metrics for node.js, express, router, and codimd realtime status.
1. **/metrics/router** : exporting node.js/express Prometheus metrics by
[prometheus-api-metrics](https://www.npmjs.com/package/prometheus-api-metrics)

2. **/metrics/codimd** : exporting codimd realtime status (/status) as
Prometheus metrics

Signed-off-by: tarlety <tarlety@gmail.com>
2020-05-01 22:17:22 +08:00

12 lines
539 B
Plaintext

online_notes <%- onlineNotes %>
online_users <%- onlineUsers %>
distinct_online_users <%- distinctOnlineUsers %>
notes_count <%- notesCount %>
registered_users <%- registeredUsers %>
online_registered_users <%- onlineRegisteredUsers %>
distinct_online_registered_users <%- distinctOnlineRegisteredUsers %>
is_connection_busy <%- isConnectionBusy ? 1 : 0 %>
connection_socket_queue_length <%- connectionSocketQueueLength %>
is_disconnect_busy <%- isDisconnectBusy ? 1: 0 %>
disconnect_socket_queue_length <%- disconnectSocketQueueLength %>