tg123/sshpiper

Prometheus service metrics

vholer opened this issue · 1 comments

It could be interesting if sshpiper exposes the metrics on a dedicated port in common Prometheus/OpenMetrics format, so that the use of service can be monitored.

Examples of metrics:

basic:

  • uptime
  • pipes count
  • active sessions count (full successful connection from down to up)

intermediate:

  • downstream and upstream connections
    • counter of total/failed/successful
    • gauge of currently opened connections
    • breakdown on pipes?
    • breakdown on key types?

advanced:

  • traffic counter (separated down/upstream)

...

tg123 commented

i have an internal version with metric but not fancy enough
but there is a kill pipe cmd

will clean up and open them and make the metrics expose to Prometheus