Skip to content

Commit

Permalink
Remove message worker metric
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-ssvlabs committed Dec 3, 2024
1 parent b64e1dd commit 09f0fdc
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions protocol/v2/queue/worker/message_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,12 @@ package worker
import (
"context"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"go.uber.org/zap"

"github.com/ssvlabs/ssv/network"
"github.com/ssvlabs/ssv/protocol/v2/ssv/queue"
)

var (
metricsMsgProcessing = promauto.NewCounterVec(prometheus.CounterOpts{
Name: "ssv:worker:msg:process",
Help: "Count decided messages",
}, []string{"prefix"})
)

func init() {
logger := zap.L()
if err := prometheus.Register(metricsMsgProcessing); err != nil {
logger.Debug("could not register prometheus collector")
}
}

// MsgHandler func that receive message.SSVMessage to handle
type MsgHandler func(msg network.DecodedSSVMessage) error

Expand Down Expand Up @@ -138,5 +122,4 @@ func (w *Worker) process(logger *zap.Logger, msg *queue.SSVMessage) {
return
}
}
metricsMsgProcessing.WithLabelValues(w.metricsPrefix).Inc()
}

0 comments on commit 09f0fdc

Please sign in to comment.