2a53063679
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
11 lines
423 B
YAML
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.
|