Skip to content

Commit

Permalink
feat: add customized metrics (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq authored Jul 24, 2023
1 parent af32c76 commit e147ff6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/core/metric/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ var (
Name: "client_stats_gauge",
Labels: []string{"type", "name", "index"},
}.Build()

// CustomizedHandleGauge 业务自定义 gauge.
CustomizedHandleGauge = NewGaugeVec("customized_handle_gauge", []string{"type"})
// CustomizedHandleCounter 业务自定义 counter.
CustomizedHandleCounter = NewCounterVec("customized_handle_total", []string{"type"})
// CustomizedHandleHistogram 业务自定义 histogram.
CustomizedHandleHistogram = NewHistogramVec("customized_handle_seconds", []string{"type"})
)

func init() {
Expand Down

0 comments on commit e147ff6

Please sign in to comment.