chore(stupgrades): expose latest release as a metric

This commit is contained in:
Jakob Borg
2025-04-13 09:40:11 +02:00
parent ab5c42f4a0
commit f6f144bf17
2 changed files with 28 additions and 3 deletions
+6
View File
@@ -27,4 +27,10 @@ var (
Subsystem: "upgrade",
Name: "http_requests",
}, []string{"target", "result"})
metricLatestReleaseInfo = promauto.NewGaugeVec(prometheus.GaugeOpts{
Namespace: "syncthing",
Subsystem: "upgrade",
Name: "latest_release_info",
Help: "Release information",
}, []string{"latest_release", "latest_pre"})
)