⚠⚠⚠ Deprecated: ⚠⚠⚠
This repository is deprecated in favor of libcontainerssh for ContainerSSH 0.5.
This library integrates the metrics service with the sshserver library.
This library is intended as an overlay/proxy for a handler for the sshserver library "handler". It can be injected transparently to collect the following metrics:
containerssh_ssh_connectionscontainerssh_ssh_handshake_successfulcontainerssh_ssh_handshake_failedcontainerssh_ssh_current_connectionscontainerssh_auth_server_failurescontainerssh_auth_failurescontainerssh_auth_success
The handler can be instantiated with the following method:
handler, err := metricsintegration.New(
config,
metricsCollector,
backend,
)configis a configuration structure from the metrics library. This is used to bypass the metrics integration backend if metrics are disabled.metricsCollectoris the metrics collector from the metrics library.backendis an SSH server backend from the sserver library.