Skip to content

Commit

Permalink
added target to all metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
freemanzMrojo committed Nov 26, 2024
1 parent 35686d5 commit 53d6108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metrics/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (o *prometheusMetrics) newHistogramMeter(name string, buckets []int64) Hist

err := prometheus.Register(meter)
if err != nil {
logger.Warn("unable to register metric", "err", err)
logger.Warn(fmt.Sprintf("unable to register metric %s", name), "err", err)
}

return &promHistogramMeter{
Expand Down
2 changes: 1 addition & 1 deletion state/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import (
"github.com/vechain/thor/v2/metrics"
)

var metricAccountCounter = metrics.LazyLoadCounterVec("account_write_count", []string{"type", "target"})
var metricAccountCounter = metrics.LazyLoadCounterVec("account_state_count", []string{"type", "target"})

0 comments on commit 53d6108

Please sign in to comment.