cmd/stcrashreceiver: Add metrics for diskstore inventory

This commit is contained in:
Jakob Borg
2023-11-27 08:24:59 +01:00
parent 47bcf4f8f4
commit 2ae15aa454
2 changed files with 26 additions and 0 deletions
+15
View File
@@ -22,4 +22,19 @@ var (
Subsystem: "crashreceiver",
Name: "failure_reports_total",
}, []string{"result"})
metricDiskstoreFilesTotal = promauto.NewGauge(prometheus.GaugeOpts{
Namespace: "syncthing",
Subsystem: "crashreceiver",
Name: "diskstore_files_total",
})
metricDiskstoreBytesTotal = promauto.NewGauge(prometheus.GaugeOpts{
Namespace: "syncthing",
Subsystem: "crashreceiver",
Name: "diskstore_bytes_total",
})
metricDiskstoreOldestAgeSeconds = promauto.NewGauge(prometheus.GaugeOpts{
Namespace: "syncthing",
Subsystem: "crashreceiver",
Name: "diskstore_oldest_age_seconds",
})
)