[#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
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:
parent
148d68933b
commit
0bdc4196d8
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…
Add table
Reference in a new issue