Skip to content

Commit

Permalink
metrics: clients that have not performed a backup need to reset the L…
Browse files Browse the repository at this point in the history
…astBackupDurationG metrics (#4700)
  • Loading branch information
zhijian-pro authored Apr 16, 2024
1 parent ec2dfd2 commit 4f05e0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/vfs/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ func Backup(m meta.Meta, blob object.ObjectStorage, interval time.Duration, skip
logger.Warnf("backup metadata failed: %s", err)
}
LastBackupDurationG.Set(time.Since(now).Seconds())
} else {
LastBackupDurationG.Set(0)
}
}
}
Expand Down

0 comments on commit 4f05e0f

Please sign in to comment.