Fix MON Stein Metrics 98/8798/1
authorbeierlm <mark.beierl@canonical.com>
Fri, 17 Apr 2020 17:08:11 +0000 (13:08 -0400)
committerbeierlm <mark.beierl@canonical.com>
Fri, 17 Apr 2020 17:08:39 +0000 (13:08 -0400)
commit8a77165ce022c148d39cfa45a5090cb19bcb3833
tree0e541d6e227447e9de8cfbc6be91cb91eadfc920
parente1e89cc75034e0ea13ca835f92125bdd45f08830
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>
osm_mon/collector/vnf_collectors/openstack.py
osm_mon/tests/unit/collector/vnf_collectors/test_openstack.py