@@ -10,8 +10,8 @@ type sshServerMetrics struct {
10
10
failedConnectionsTotal prometheus.Counter
11
11
12
12
// SFTP
13
- sftpHandler prometheus.Counter
14
- sftpServerError prometheus.Counter
13
+ sftpConnectionsTotal prometheus.Counter
14
+ sftpServerError prometheus.Counter
15
15
16
16
// X11
17
17
x11SocketDirError prometheus.Counter
@@ -52,10 +52,10 @@ func newSSHServerMetrics(registerer prometheus.Registerer) *sshServerMetrics {
52
52
})
53
53
registerer .MustRegister (failedConnectionsTotal )
54
54
55
- sftpHandler := prometheus .NewCounter (prometheus.CounterOpts {
56
- Namespace : "agent" , Subsystem : "ssh_server" , Name : "sftp_handler " ,
55
+ sftpConnectionsTotal := prometheus .NewCounter (prometheus.CounterOpts {
56
+ Namespace : "agent" , Subsystem : "ssh_server" , Name : "sftp_connections_total " ,
57
57
})
58
- registerer .MustRegister (sftpHandler )
58
+ registerer .MustRegister (sftpConnectionsTotal )
59
59
60
60
sftpServerError := prometheus .NewCounter (prometheus.CounterOpts {
61
61
Namespace : "agent" , Subsystem : "ssh_server" , Name : "sftp_server_error" ,
@@ -81,7 +81,7 @@ func newSSHServerMetrics(registerer prometheus.Registerer) *sshServerMetrics {
81
81
82
82
return & sshServerMetrics {
83
83
failedConnectionsTotal : failedConnectionsTotal ,
84
- sftpHandler : sftpHandler ,
84
+ sftpConnectionsTotal : sftpConnectionsTotal ,
85
85
sftpServerError : sftpServerError ,
86
86
x11HostnameError : x11HostnameError ,
87
87
x11SocketDirError : x11SocketDirError ,
0 commit comments