forked from TrueCloudLab/frostfs-node
[#1531] metrics: Rename app_info
metric
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
parent
7c3bcb0f44
commit
2832f44437
1 changed files with 3 additions and 2 deletions
|
@ -12,8 +12,9 @@ type ApplicationInfo struct {
|
|||
func NewApplicationInfo(version string) *ApplicationInfo {
|
||||
appInfo := &ApplicationInfo{
|
||||
versionValue: metrics.NewGaugeVec(prometheus.GaugeOpts{
|
||||
Name: "app_info",
|
||||
Help: "General information about the application.",
|
||||
Namespace: namespace,
|
||||
Name: "app_info",
|
||||
Help: "General information about the application.",
|
||||
}, []string{"version"}),
|
||||
}
|
||||
appInfo.versionValue.With(prometheus.Labels{"version": version})
|
||||
|
|
Loading…
Reference in a new issue