[#1531] metrics: Rename app_info metric
All checks were successful
DCO action / DCO (pull_request) Successful in 3m23s
Tests and linters / Run gofumpt (pull_request) Successful in 3m59s
Vulncheck / Vulncheck (pull_request) Successful in 4m6s
Pre-commit hooks / Pre-commit (pull_request) Successful in 4m39s
Build / Build Components (pull_request) Successful in 5m12s
Tests and linters / Staticcheck (pull_request) Successful in 5m4s
Tests and linters / gopls check (pull_request) Successful in 5m11s
Tests and linters / Tests (pull_request) Successful in 5m33s
Tests and linters / Tests with -race (pull_request) Successful in 5m36s
Tests and linters / Lint (pull_request) Successful in 5m49s

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
Ekaterina Lebedeva 2024-12-20 12:30:06 +03:00
parent 148d68933b
commit 0bdc4196d8

View file

@ -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})