Skip to content

Commit a0fa685

Browse files
author
coder2z
committed
xmonitor
1 parent c941759 commit a0fa685

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

xmonitor/init.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ func init() {
1111
BuildInfoGauge.WithLabelValues(
1212
xapp.Name(),
1313
xapp.AppMode(),
14+
xapp.HostIP(),
1415
xapp.AppVersion(),
1516
xapp.GoVersion(),
1617
xapp.StartTime(),

xmonitor/metric.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ var (
6969
CacheHandleHistogram = NewHistogramVec("cache_handle_seconds", []string{"type", "name", "action"})
7070

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

0 commit comments

Comments
 (0)