fix: correct metric name for immich version

Signed-off-by: martin <martin.labat92@gmail.com>
This commit is contained in:
martin 2023-02-19 12:16:32 +01:00
parent e6870170aa
commit 05a3dd2501
No known key found for this signature in database
GPG key ID: 4544CC55835A3B9E
2 changed files with 742 additions and 693 deletions

File diff suppressed because it is too large Load diff

View file

@ -68,7 +68,7 @@ func SendBackMessagePreference(result *models.StructServerInfo, result2 *models.
func SendBackMessageserverVersion(result *models.StructServerVersion, r *prometheus.Registry) { func SendBackMessageserverVersion(result *models.StructServerVersion, r *prometheus.Registry) {
version := prometheus.NewGauge(prometheus.GaugeOpts{ version := prometheus.NewGauge(prometheus.GaugeOpts{
Name: "version", Name: "immich_app_version",
Help: "Immich version", Help: "Immich version",
ConstLabels: map[string]string{ ConstLabels: map[string]string{
"version": strconv.Itoa((*result).Major) + "." + strconv.Itoa((*result).Minor) + "." + strconv.Itoa((*result).Patch), "version": strconv.Itoa((*result).Major) + "." + strconv.Itoa((*result).Minor) + "." + strconv.Itoa((*result).Patch),