Documentation ¶
Index ¶
- type ServerMetrics
- func (m *ServerMetrics) RegisterAllMetrics()
- func (m *ServerMetrics) RegisterBackupAttempt(backupSchedule string)
- func (m *ServerMetrics) RegisterBackupDuration(backupSchedule string, seconds float64)
- func (m *ServerMetrics) RegisterBackupFailed(backupSchedule string)
- func (m *ServerMetrics) RegisterBackupSuccess(backupSchedule string)
- func (m *ServerMetrics) SetBackupTarballSizeBytesGauge(backupSchedule string, size 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 Ark server.
func NewServerMetrics ¶
func NewServerMetrics() *ServerMetrics
NewServerMetrics returns new ServerMetrics
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) 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) RegisterBackupSuccess ¶
func (m *ServerMetrics) RegisterBackupSuccess(backupSchedule string)
RegisterBackupSuccess records a successful completion of a backup.
func (*ServerMetrics) SetBackupTarballSizeBytesGauge ¶
func (m *ServerMetrics) SetBackupTarballSizeBytesGauge(backupSchedule string, size int64)
SetBackupTarballSizeBytesGauge records the size, in bytes, of a backup tarball.
Click to show internal directories.
Click to hide internal directories.