Closed dbalagansky closed 11 months ago
I assume fille=dropna could be used, but you are explicitly interested in previous as well?
I assume fille=dropna could be used, but you are explicitly interested in previous as well?
Yes. :)
As far as I understand, by using fill=dropna
it would result in the same behaviour as above: I would only get data points in the resulting set where there are values in both series with sameish timestamp, like in the last command output I've shown (for default fill
behaviour), which effectively results in losing some of the data.
Which version of Gnocchi are you using
on OpenStack Xena release.
How to reproduce your problem
I'm trying to get percentage of CPU and memory utilization on a scale from 1 to 100 (for CPU that means, that percent of utilization doesn't depend on a number of vCPUs in VM).
For
cpu
I have this data in series:For
vcpus
I have this:What is the result that you get
Now, when I try to aggregate those two series to get CPU utilization on a scale from 1 to 100, I get data points in the resulting set only for intersections of series where points are with the same
timestamp
:This works as expected, as this should be fixed by using
fill
parameter, but I can only set a static value forfill
, whereas I need missing values from thevcpus
series to be filled with "same value as previous non-null/none/NaN" value, for this kind of aggregate to work properly.Previously, this could be achieved by creating same percentage metrics with
transform
insink
, which got deprecated and consequetively removed.What is result that you expected
I expect a way to get CPU and memory utilization in percent for all available data point in
cpu
andmemory.usage
series on a scale from 0 to 100 by using calculated, based on existing data in series, value forfill
.Some time ago there were attempts to fix this missing bit within ceilometer:
cpu_util
memory_util
and the first one of these raised a valid question for why does percentage would be stored as cumulative value, so Gnocchi looks like proper place to add this functionality. missing