Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions content/en/docs/18.0/reference/backup-and-restore/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ _restore_duration_seconds_ times the duration of a restore. This metric is depre

Vtbackup exports some metrics which are not available elsewhere.

#### DurationByPhaseSeconds
#### Phase

Vtbackup fetches the last backup, restores it to an empty mysql installation, replicates recent changes into that installation, and then takes a backup of that installation.

_DurationByPhaseSeconds_ exports timings for these individual phases.
_Phase_ a binary-valued gauge that reports the currently active phase.

<hr style="border-top: 2px dashed brown">

Expand Down Expand Up @@ -91,11 +91,11 @@ _DurationByPhaseSeconds_ exports timings for these individual phases.
"BackupEngine.Builtin.Destination:Close": 17144630,
"BackupStorage.File.File:Write": 10743169
},
"DurationByPhaseSeconds": {
"InitMySQLd": 2,
"RestoreLastBackup": 6,
"CatchUpReplication": 1,
"TakeNewBackup": 4
"Phase": {
"InitialBackup": 0,
"RestoreLastBackup": 0,
"CatchUpReplication": 0,
"TakeNewBackup": 0
},
"RestoreBytes": {
"BackupEngine.Builtin.Source:Read": 1095,
Expand Down Expand Up @@ -131,6 +131,6 @@ _DurationByPhaseSeconds_ exports timings for these individual phases.
Some notes to help understand these metrics:

* `BackupBytes["BackupStorage.File.File:Write"]` measures how many bytes were read from disk by the `file` Backup Storage implementation during the backup phase.
* `DurationByPhaseSeconds["CatchUpReplication"]` measures how long it took to catch-up replication after the restore phase.
* `DurationByPhaseSeconds["RestoreLastBackup"]` measures to the duration of the restore phase.
* `Phase["CatchUpReplication"]` reports whether the catch-up replication phase is active (1) or not (0).
* `Phase["RestoreLastBackup"]` reports whether the restore last backup phase is active (1) or not (0).
* `RestoreDurationNanoseconds["-.-.Restore"]` also measures to the duration of the restore phase.