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