Fix metric help and register failure count metric
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
IamTheFij 2022-11-07 21:01:07 -08:00
parent 6a28cf96a8
commit 9a239a68b9

View File

@ -38,7 +38,7 @@ func InitMetrics() *ResticMetrics {
SnapshotCurrentCount: prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "restic_snapshot_current_total",
Help: "time it took for the last job run",
Help: "number of current snapshots",
Namespace: "",
Subsystem: "",
ConstLabels: nil,
@ -58,6 +58,7 @@ func InitMetrics() *ResticMetrics {
}
prometheus.MustRegister(metrics.JobStartTime)
prometheus.MustRegister(metrics.JobFailureCount)
prometheus.MustRegister(metrics.SnapshotCurrentCount)
prometheus.MustRegister(metrics.SnapshotLatestTime)