Fix MON Stein Metrics 10/8910/1
authorbeierlm <mark.beierl@canonical.com>
Fri, 17 Apr 2020 17:08:11 +0000 (13:08 -0400)
committerpalsus <subhankar.pal@altran.com>
Wed, 13 May 2020 10:49:38 +0000 (12:49 +0200)
commitd13f7b7bc2cd1d3676bc479db080042773823bc9
tree2f9c224a643eef59f186dbe0fcc002bb9ac5990b
parent46b49775fd781017ee9d6fcbd6d5aa6a24962a8b
Fix MON Stein Metrics

Gnocchi deprecated the use of the cpu_util parameter after Rocky.  What
is needed instead is to use the ceilometer-low-rate cpu metric and
covert that to a percentage using value/time interval.  This metric
was introduced in Mitaka, and has been shown to work with Rocky as
part of the Whitestack WhiteCloud Rocky deployment, as well as Stein
with Canonical Charmed OpenStack Stein deployment.

Bug 790

Change-Id: I1a895e3569f9206c39ce3c77636d1b45a1a1bd3a
Signed-off-by: beierlm <mark.beierl@canonical.com>
(cherry picked from commit 8a77165ce022c148d39cfa45a5090cb19bcb3833)
osm_mon/collector/vnf_collectors/openstack.py
osm_mon/tests/unit/collector/vnf_collectors/test_openstack.py