Documentation ¶
Index ¶
- type ServerMetrics
- func (m *ServerMetrics) InitSchedule(scheduleName string)
- func (m *ServerMetrics) RegisterAllMetrics()
- func (m *ServerMetrics) RegisterBackupAttempt(backupSchedule string)
- func (m *ServerMetrics) RegisterBackupDeletionAttempt(backupSchedule string)
- func (m *ServerMetrics) RegisterBackupDeletionFailed(backupSchedule string)
- func (m *ServerMetrics) RegisterBackupDeletionSuccess(backupSchedule string)
- func (m *ServerMetrics) RegisterBackupDuration(backupSchedule string, seconds float64)
- func (m *ServerMetrics) RegisterBackupFailed(backupSchedule string)
- func (m *ServerMetrics) RegisterBackupPartialFailure(backupSchedule string)
- func (m *ServerMetrics) RegisterBackupSuccess(backupSchedule string)
- func (m *ServerMetrics) RegisterRestoreAttempt(backupSchedule string)
- func (m *ServerMetrics) RegisterRestoreFailed(backupSchedule string)
- func (m *ServerMetrics) RegisterRestorePartialFailure(backupSchedule string)
- func (m *ServerMetrics) RegisterRestoreSuccess(backupSchedule string)
- func (m *ServerMetrics) RegisterRestoreValidationFailed(backupSchedule string)
- func (m *ServerMetrics) RegisterVolumeSnapshotAttempts(backupSchedule string, volumeSnapshotsAttempted int)
- func (m *ServerMetrics) RegisterVolumeSnapshotFailures(backupSchedule string, volumeSnapshotsFailed int)
- func (m *ServerMetrics) RegisterVolumeSnapshotSuccesses(backupSchedule string, volumeSnapshotsCompleted int)
- func (m *ServerMetrics) SetBackupLastSuccessfulTimestamp(backupSchedule string, time time.Time)
- func (m *ServerMetrics) SetBackupTarballSizeBytesGauge(backupSchedule string, size int64)
- func (m *ServerMetrics) SetBackupTotal(numberOfBackups int64)
- func (m *ServerMetrics) SetRestoreTotal(numberOfRestores int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerMetrics ¶
type ServerMetrics struct {
// contains filtered or unexported fields
}
ServerMetrics contains Prometheus metrics for the Velero server.
func NewServerMetrics ¶
func NewServerMetrics() *ServerMetrics
NewServerMetrics returns new ServerMetrics
func (*ServerMetrics) InitSchedule ¶
func (m *ServerMetrics) InitSchedule(scheduleName string)
InitSchedule initializes counter metrics of a schedule.
func (*ServerMetrics) RegisterAllMetrics ¶
func (m *ServerMetrics) RegisterAllMetrics()
RegisterAllMetrics registers all prometheus metrics.
func (*ServerMetrics) RegisterBackupAttempt ¶
func (m *ServerMetrics) RegisterBackupAttempt(backupSchedule string)
RegisterBackupAttempt records an backup attempt.
func (*ServerMetrics) RegisterBackupDeletionAttempt ¶
func (m *ServerMetrics) RegisterBackupDeletionAttempt(backupSchedule string)
RegisterBackupDeletionAttempt records the number of attempted backup deletions
func (*ServerMetrics) RegisterBackupDeletionFailed ¶
func (m *ServerMetrics) RegisterBackupDeletionFailed(backupSchedule string)
RegisterBackupDeletionFailed records the number of failed backup deletions
func (*ServerMetrics) RegisterBackupDeletionSuccess ¶
func (m *ServerMetrics) RegisterBackupDeletionSuccess(backupSchedule string)
RegisterBackupDeletionSuccess records the number of successful backup deletions
func (*ServerMetrics) RegisterBackupDuration ¶
func (m *ServerMetrics) RegisterBackupDuration(backupSchedule string, seconds float64)
RegisterBackupDuration records the number of seconds a backup took.
func (*ServerMetrics) RegisterBackupFailed ¶
func (m *ServerMetrics) RegisterBackupFailed(backupSchedule string)
RegisterBackupFailed records a failed backup.
func (*ServerMetrics) RegisterBackupPartialFailure ¶
func (m *ServerMetrics) RegisterBackupPartialFailure(backupSchedule string)
RegisterBackupPartialFailure records a partially failed backup.
func (*ServerMetrics) RegisterBackupSuccess ¶
func (m *ServerMetrics) RegisterBackupSuccess(backupSchedule string)
RegisterBackupSuccess records a successful completion of a backup.
func (*ServerMetrics) RegisterRestoreAttempt ¶
func (m *ServerMetrics) RegisterRestoreAttempt(backupSchedule string)
RegisterRestoreAttempt records an attempt to restore a backup.
func (*ServerMetrics) RegisterRestoreFailed ¶
func (m *ServerMetrics) RegisterRestoreFailed(backupSchedule string)
RegisterRestoreFailed records a restore that failed.
func (*ServerMetrics) RegisterRestorePartialFailure ¶
func (m *ServerMetrics) RegisterRestorePartialFailure(backupSchedule string)
RegisterRestorePartialFailure records a restore that partially failed.
func (*ServerMetrics) RegisterRestoreSuccess ¶
func (m *ServerMetrics) RegisterRestoreSuccess(backupSchedule string)
RegisterRestoreSuccess records a successful (maybe partial) completion of a restore.
func (*ServerMetrics) RegisterRestoreValidationFailed ¶
func (m *ServerMetrics) RegisterRestoreValidationFailed(backupSchedule string)
RegisterRestoreValidationFailed records a restore that failed validation.
func (*ServerMetrics) RegisterVolumeSnapshotAttempts ¶
func (m *ServerMetrics) RegisterVolumeSnapshotAttempts(backupSchedule string, volumeSnapshotsAttempted int)
RegisterVolumeSnapshotAttempts records an attempt to snapshot a volume.
func (*ServerMetrics) RegisterVolumeSnapshotFailures ¶
func (m *ServerMetrics) RegisterVolumeSnapshotFailures(backupSchedule string, volumeSnapshotsFailed int)
RegisterVolumeSnapshotFailures records a failed volume snapshot.
func (*ServerMetrics) RegisterVolumeSnapshotSuccesses ¶
func (m *ServerMetrics) RegisterVolumeSnapshotSuccesses(backupSchedule string, volumeSnapshotsCompleted int)
RegisterVolumeSnapshotSuccesses records a completed volume snapshot.
func (*ServerMetrics) SetBackupLastSuccessfulTimestamp ¶
func (m *ServerMetrics) SetBackupLastSuccessfulTimestamp(backupSchedule string, time time.Time)
SetBackupLastSuccessfulTimestamp records the last time a backup ran successfully, Unix timestamp in seconds
func (*ServerMetrics) SetBackupTarballSizeBytesGauge ¶
func (m *ServerMetrics) SetBackupTarballSizeBytesGauge(backupSchedule string, size int64)
SetBackupTarballSizeBytesGauge records the size, in bytes, of a backup tarball.
func (*ServerMetrics) SetBackupTotal ¶
func (m *ServerMetrics) SetBackupTotal(numberOfBackups int64)
SetBackupTotal records the current number of existent backups.
func (*ServerMetrics) SetRestoreTotal ¶
func (m *ServerMetrics) SetRestoreTotal(numberOfRestores int64)
SetRestoreTotal records the current number of existent restores.