[#1531] metrics: Rename app_info metric

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
Ekaterina Lebedeva 2024-12-20 12:30:06 +03:00 committed by Evgenii Stratonikov
parent 7c3bcb0f44
commit 2832f44437

View file

@ -12,8 +12,9 @@ type ApplicationInfo struct {
func NewApplicationInfo(version string) *ApplicationInfo { func NewApplicationInfo(version string) *ApplicationInfo {
appInfo := &ApplicationInfo{ appInfo := &ApplicationInfo{
versionValue: metrics.NewGaugeVec(prometheus.GaugeOpts{ versionValue: metrics.NewGaugeVec(prometheus.GaugeOpts{
Name: "app_info", Namespace: namespace,
Help: "General information about the application.", Name: "app_info",
Help: "General information about the application.",
}, []string{"version"}), }, []string{"version"}),
} }
appInfo.versionValue.With(prometheus.Labels{"version": version}) appInfo.versionValue.With(prometheus.Labels{"version": version})