Fix metric help and register failure count metric
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6a28cf96a8
commit
9a239a68b9
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user