nova/releasenotes/notes/bp-memory-bw-4ceb971cfe1a2fd0.yaml
Sudipta Biswas 2a53063679 Allow monitor plugins to set own metric object
The values reported by a monitor depends on the type of value which
will not be uniform for all the monitors. For example, the memory
bandwidth monitor will return a dict of ints while the cpu monitor
returns a normal int value. The monitor metric objects offer
different fields to be set depending on the monitor in question.

This patchset allows the monitors to decide what metric field
it would like to populate as over a general implementation of
creating the monitor metric object inside the base module.
This would also help in exchanging versioned objects between
the monitors and the compute drivers.

Eventually this work will lead up to making the metrics.update
notification as versioned.

Related to blueprint memory-bw
Co-Authored-By: Ahilan Rajadeva <rajadeva@us.ibm.com>

Change-Id: Ieaf3d44bbe73e71ad877199bbbc779afa4218b51
2016-06-27 14:38:32 +05:30

11 lines
423 B
YAML

---
upgrade:
- The get_metrics API has been replaced by
populate_metrics in nova.compute.monitors.base
module. This change is introduced to allow each
monitor plugin to have the flexibility of setting
it's own metric value types. The in-tree metrics
plugins are modified as a part of this change.
However, the out-of-tree plugins would have to
adapt to the new API in order to work with nova.