Skip to content

Commit

Permalink
refactor(bridge-history): rename metrics (#971)
Browse files Browse the repository at this point in the history
Co-authored-by: colinlyguo <[email protected]>
  • Loading branch information
colinlyguo and colinlyguo authored Sep 26, 2023
1 parent 35d4ec5 commit 7604612
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bridge-history-api/internal/controller/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ func initCacheMetrics() *cacheMetrics {
cm = &cacheMetrics{
cacheHits: promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "cache_hits_total",
Name: "bridge_history_api_cache_hits_total",
Help: "The total number of cache hits",
},
[]string{"api"},
),
cacheMisses: promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "cache_misses_total",
Name: "bridge_history_api_cache_misses_total",
Help: "The total number of cache misses",
},
[]string{"api"},
Expand Down
2 changes: 1 addition & 1 deletion bridge-history-api/internal/route/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func Route(router *gin.Engine, conf *config.Config, reg prometheus.Registerer) {
MaxAge: 12 * time.Hour,
}))

observability.Use(router, "bridge_history", reg)
observability.Use(router, "bridge_history_api", reg)

r := router.Group("api/")
r.POST("/txsbyhashes", controller.HistoryCtrler.PostQueryTxsByHash)
Expand Down
2 changes: 1 addition & 1 deletion common/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"runtime/debug"
)

var tag = "v4.3.24"
var tag = "v4.3.25"

var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {
Expand Down

0 comments on commit 7604612

Please sign in to comment.