Skip to content

Commit

Permalink
xmonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
coder2z committed Apr 19, 2021
1 parent c941759 commit a0fa685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions xmonitor/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ func init() {
BuildInfoGauge.WithLabelValues(
xapp.Name(),
xapp.AppMode(),
xapp.HostIP(),
xapp.AppVersion(),
xapp.GoVersion(),
xapp.StartTime(),
Expand Down
2 changes: 1 addition & 1 deletion xmonitor/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ var (
CacheHandleHistogram = NewHistogramVec("cache_handle_seconds", []string{"type", "name", "action"})

// BuildInfoGauge ... 版本信息指标
BuildInfoGauge = NewGaugeVec("build_info", []string{"name", "mode", "app_version", "go_version", "start_time"})
BuildInfoGauge = NewGaugeVec("build_info", []string{"name", "mode", "instance", "app_version", "go_version", "start_time"})
)

0 comments on commit a0fa685

Please sign in to comment.