Using metrics#
Alongside logging, nohub provides various metrics for observability.
Metrics are served over HTTP, ready to be scraped by Prometheus, on
/metrics.
Configuring metrics#
By default, metrics are enabled, collected, and served over HTTP.
Make sure to read Metrics to customize how metrics are served.
Reported metrics#
nohub_exchanges_totalTotal number of trimsock exchanges handled. Reported for each command.
nohub_exchanges_failedTotal number of trimsock exchanges that resulted in an error. Reported for each command.
nohub_exchange_duration_secondsTime it took to process each trimsock exchange. Reported as a histogram, separately for each command.
nohub_sessions_totalTotal number of active sessions.
nohub_lobbies_totalTotal number of active lobbies.