From b8bf71425b6d56aee8740e12a60099cca8c270a3 Mon Sep 17 00:00:00 2001 From: Lukasz Zajaczkowski Date: Mon, 19 Mar 2018 10:28:13 +0100 Subject: [PATCH] Add prerequisite for enabling all untunable metrics Change-Id: Ie198ec9f0d97c41462ab3de8e4ae92426f8102a9 --- docs/Libvirt.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/Libvirt.md b/docs/Libvirt.md index 96a57a33..6691b1e0 100644 --- a/docs/Libvirt.md +++ b/docs/Libvirt.md @@ -424,7 +424,18 @@ Configuration parameters can be used to control which metrics are reported by li | | vm.io.write_ops_total_sec | io.write_ops_total_sec | ### Untunable Metrics -Please see table below for metrics in libvirt that are always enabled. +#### Prerequisite +By default, the memory statistics feature is disabled in qemu. You need to add +stats period in order to enable them. +* Enable stats period of memballoon device. Add default +`mem_stats_period_seconds=10` into `/etc/nova/nova.conf` file. Restart +nova-compute service: `sudo systemctl restart openstack-nova-compute` +* Make sure your image includes the suitable balloon driver, particularly +for Windows guests, most modern Linuxes have it build in. For `cirros` +distribution, it's available from version 0.4.0. + +#### Untunable Metrics List +Please see table below for metrics in libvirt. | Admin Metric Name | Tenant Metric Name | | ----------------- | ------------------ |