[#1531] metrics: Rename app_info
metric
All checks were successful
Vulncheck / Vulncheck (push) Successful in 5m30s
Tests and linters / Run gofumpt (push) Successful in 5m52s
Pre-commit hooks / Pre-commit (push) Successful in 6m37s
Build / Build Components (push) Successful in 6m43s
Tests and linters / Staticcheck (push) Successful in 6m42s
Tests and linters / Tests (push) Successful in 7m37s
Tests and linters / Tests with -race (push) Successful in 7m33s
Tests and linters / gopls check (push) Successful in 7m29s
Tests and linters / Lint (push) Successful in 7m54s
All checks were successful
Vulncheck / Vulncheck (push) Successful in 5m30s
Tests and linters / Run gofumpt (push) Successful in 5m52s
Pre-commit hooks / Pre-commit (push) Successful in 6m37s
Build / Build Components (push) Successful in 6m43s
Tests and linters / Staticcheck (push) Successful in 6m42s
Tests and linters / Tests (push) Successful in 7m37s
Tests and linters / Tests with -race (push) Successful in 7m33s
Tests and linters / gopls check (push) Successful in 7m29s
Tests and linters / Lint (push) Successful in 7m54s
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 {
|
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})
|
||||||
|
|
Loading…
Add table
Reference in a new issue