sshpiper icon indicating copy to clipboard operation
sshpiper copied to clipboard

Prometheus service metrics

Open vholer opened this issue 2 years ago • 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)

...

vholer avatar Jan 05 '23 11:01 vholer

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

tg123 avatar Jan 05 '23 12:01 tg123