From a0fa685d1ae305cbc8fd8b8b05dc743ce5fabe0b Mon Sep 17 00:00:00 2001 From: coder2z <2399158611@qq.com> Date: Mon, 19 Apr 2021 23:53:56 +0800 Subject: [PATCH] xmonitor --- xmonitor/init.go | 1 + xmonitor/metric.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xmonitor/init.go b/xmonitor/init.go index d6b7f59..757012b 100644 --- a/xmonitor/init.go +++ b/xmonitor/init.go @@ -11,6 +11,7 @@ func init() { BuildInfoGauge.WithLabelValues( xapp.Name(), xapp.AppMode(), + xapp.HostIP(), xapp.AppVersion(), xapp.GoVersion(), xapp.StartTime(), diff --git a/xmonitor/metric.go b/xmonitor/metric.go index 65a88dc..37afdb9 100644 --- a/xmonitor/metric.go +++ b/xmonitor/metric.go @@ -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"}) )