File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1515 clientConnLabels = []string {"conn_index" }
1616 clientMetrics = struct {
1717 totalConnections prometheus.Counter
18- closedConnections * prometheus.CounterVec
18+ closedConnections prometheus.Counter
1919 sentPackets * prometheus.CounterVec
2020 sentBytes * prometheus.CounterVec
2121 receivePackets * prometheus.CounterVec
3030 totalConnections : prometheus .NewCounter (
3131 totalConnectionsOpts (logging .PerspectiveClient ),
3232 ),
33- closedConnections : prometheus .NewCounterVec (
33+ closedConnections : prometheus .NewCounter (
3434 closedConnectionsOpts (logging .PerspectiveClient ),
35- []string {"error" },
3635 ),
3736 sentPackets : prometheus .NewCounterVec (
3837 sentPacketsOpts (logging .PerspectiveClient ),
@@ -284,7 +283,7 @@ func (cc *clientCollector) startedConnection() {
284283}
285284
286285func (cc * clientCollector ) closedConnection (err error ) {
287- clientMetrics .closedConnections .WithLabelValues ( err . Error ()). Inc ()
286+ clientMetrics .closedConnections .Inc ()
288287}
289288
290289func (cc * clientCollector ) sentPackets (size logging.ByteCount ) {
You can’t perform that action at this time.
0 commit comments