Skip to content

Commit 7018064

Browse files
iQQBotroboquat
authored andcommitted
[ws-proxy] fix miss parameter when SSH connection is successful
1 parent dfb44e4 commit 7018064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/ws-proxy/pkg/sshproxy/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func New(signers []ssh.Signer, workspaceInfoProvider p.WorkspaceInfoProvider, he
156156

157157
func ReportSSHAttemptMetrics(err error) {
158158
if err == nil {
159-
SSHAttemptTotal.WithLabelValues("success").Inc()
159+
SSHAttemptTotal.WithLabelValues("success", "").Inc()
160160
return
161161
}
162162
errorType := "OTHERS"

0 commit comments

Comments
 (0)