Skip to content

Commit

Permalink
Merge pull request kubevirt#2905 from YINChengfeng/master
Browse files Browse the repository at this point in the history
fix wrong use SwapInSet when push Swap Out Metric
kubevirt-bot authored Nov 28, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 912d1b4 + c2d2127 commit 892dc87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/monitoring/vms/prometheus/prometheus.go
Original file line number Diff line number Diff line change
@@ -192,7 +192,7 @@ func updateMemory(vmi *k6tv1.VirtualMachineInstance, vmStats *stats.DomainStats,
)
tryToPushMetric(swapTrafficDesc, mv, err, ch)
}
if vmStats.Memory.SwapInSet {
if vmStats.Memory.SwapOutSet {
mv, err := prometheus.NewConstMetric(
swapTrafficDesc, prometheus.GaugeValue,
// the libvirt value is in KiB

0 comments on commit 892dc87

Please sign in to comment.