@@ -27,7 +27,6 @@ type sessionMetricsObject struct {
27
27
agentListenerError prometheus.Counter
28
28
startPTYSession prometheus.Counter
29
29
startNonPTYSession prometheus.Counter
30
- sessionError prometheus.Counter
31
30
32
31
// Non-PTY sessions
33
32
nonPTYStdinPipeError prometheus.Counter
@@ -114,11 +113,6 @@ func newSessionMetrics(registerer prometheus.Registerer) sessionMetrics {
114
113
})
115
114
registerer .MustRegister (startNonPTYSession )
116
115
117
- sessionError := prometheus .NewCounter (prometheus.CounterOpts {
118
- Namespace : "agent" , Subsystem : fmt .Sprintf ("sessions_%s" , magicType ), Name : "error" ,
119
- })
120
- registerer .MustRegister (sessionError )
121
-
122
116
nonPTYStdinPipeError := prometheus .NewCounter (prometheus.CounterOpts {
123
117
Namespace : "agent" , Subsystem : fmt .Sprintf ("sessions_%s" , magicType ), Name : "non_pty_stdin_pipe_error" ,
124
118
})
@@ -174,7 +168,6 @@ func newSessionMetrics(registerer prometheus.Registerer) sessionMetrics {
174
168
agentListenerError : agentListenerError ,
175
169
startPTYSession : startPTYSession ,
176
170
startNonPTYSession : startNonPTYSession ,
177
- sessionError : sessionError ,
178
171
179
172
nonPTYStdinPipeError : nonPTYStdinPipeError ,
180
173
nonPTYStdinIoCopyError : nonPTYStdinIoCopyError ,
0 commit comments