Skip to content

Commit

Permalink
Merge pull request kubevirt#9787 from sradco/add_help_to_migration_ph…
Browse files Browse the repository at this point in the history
…ase_transition_metrics

Add help text to the migration phase transition time metric
  • Loading branch information
kubevirt-bot authored Jul 27, 2023
2 parents 2922b84 + 44d1a11 commit c18b1b9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ The amount of memory which can be reclaimed by balloon without pushing the guest
### kubevirt_vmi_memory_used_bytes
Amount of `used` memory as seen by the domain. Type: Gauge.

### kubevirt_vmi_migration_phase_transition_time_from_creation_seconds
Histogram of VM migration phase transitions duration from creation time in seconds. Type: Histogram.

### kubevirt_vmi_network_receive_bytes_total
Total network traffic received in bytes. Type: Counter.

Expand Down Expand Up @@ -195,6 +198,15 @@ Indication for the total number of VirtualMachineInstance workloads that are not
### kubevirt_vmi_phase_count
Sum of VMIs per phase and node. `phase` can be one of the following: [`Pending`, `Scheduling`, `Scheduled`, `Running`, `Succeeded`, `Failed`, `Unknown`]. Type: Gauge.

### kubevirt_vmi_phase_transition_time_from_creation_seconds
Histogram of VM phase transitions duration from creation time in seconds. Type: Histogram.

### kubevirt_vmi_phase_transition_time_from_deletion_seconds
Histogram of VM phase transitions duration from deletion time in seconds. Type: Histogram.

### kubevirt_vmi_phase_transition_time_seconds
Histogram of VM phase transitions duration between different phases in seconds. Type: Histogram.

### kubevirt_vmi_storage_flush_requests_total
Total storage flush requests. Type: Counter.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func newVMIMigrationPhaseTransitionTimeFromCreationHistogramVec(informer cache.S
histogramVec := prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Name: "kubevirt_vmi_migration_phase_transition_time_from_creation_seconds",
Help: "Histogram of VM migration phase transitions duration from creation time in seconds",
Buckets: phaseTransitionTimeBuckets(),
},
[]string{
Expand Down
20 changes: 20 additions & 0 deletions tools/doc-generator/doc-generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,26 @@ func getMetricsNotIncludeInEndpointByDefault() metricList {
description: "Indication for a VirtualMachine that its eviction strategy is set to Live Migration but is not migratable.",
mType: "Gauge",
},
{
name: "kubevirt_vmi_migration_phase_transition_time_from_creation_seconds",
description: "Histogram of VM migration phase transitions duration from creation time in seconds.",
mType: "Histogram",
},
{
name: "kubevirt_vmi_phase_transition_time_seconds",
description: "Histogram of VM phase transitions duration between different phases in seconds.",
mType: "Histogram",
},
{
name: "kubevirt_vmi_phase_transition_time_from_creation_seconds",
description: "Histogram of VM phase transitions duration from creation time in seconds.",
mType: "Histogram",
},
{
name: "kubevirt_vmi_phase_transition_time_from_deletion_seconds",
description: "Histogram of VM phase transitions duration from deletion time in seconds.",
mType: "Histogram",
},
}

for _, rule := range components.GetRecordingRules("") {
Expand Down

0 comments on commit c18b1b9

Please sign in to comment.