<div dir="ltr">FYI, there's a new ML with same topic in [1]<div><br><div>[1] <a href="http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010210.html">http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010210.html</a></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 4, 2019 at 3:55 PM Bernd Bausch <<a href="mailto:berndbausch@gmail.com">berndbausch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Prior to Stein, Ceilometer issued a metric named <i>cpu_util</i>,
which I could use to trigger alarms and autoscaling when CPU
utilization was too high.</p>
<p>cpu_util doesn't exist anymore. Instead, we are asked to use
Gnocchi's <i>rate</i> feature. However, when using rates, alarms
on a group of resources require more parameters than just one
metric: Both an aggregation and a reaggregation method are needed.
<br>
</p>
<p>For example, a group of instances that implement "myapp":<tt><br>
</tt></p>
<p><tt>gnocchi measures aggregation -m cpu --reaggregation mean
--aggregation rate:mean --query server_group=myapp
--resource-type instance</tt></p>
<p><tt>A</tt>ctually, this command uses a deprecated API (but from
what I can see, Aodh still uses it). The new way is like this:</p>
<p><tt>gnocchi aggregates --resource-type instance '(aggregate
rate:mean (metric cpu mean))' server_group=myapp</tt></p>
<p>If rate:mean is in the archive policy, it also works the other
way around:<br>
</p>
<p><tt>gnocchi aggregates --resource-type instance '(aggregate mean
(metric cpu rate:mean))' server_group=myapp</tt></p>
<p>Without reaggregation, I get quite unexpected numbers, including
negative CPU rates. If you want to understand why, see this
discussion with one of the Gnocchi maintainers [1].<br>
</p>
<p><b>My problem</b>: Aodh allows me to set an aggregation method,
but not a reaggregation method. How can I create alarms based on
rates? The problem extends to Heat and autoscaling.<br>
</p>
<p>Thanks much,</p>
<p>Bernd.<br>
</p>
<p>[1] <a href="https://github.com/gnocchixyz/gnocchi/issues/1044" target="_blank">https://github.com/gnocchixyz/gnocchi/issues/1044</a><br>
</p>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="background-image:none"><div style="font-size:small"><div><table border="0" cellpadding="0" cellspacing="0" style="color:rgb(0,0,0);font-size:medium;font-family:verdana"><tbody><tr><td colspan="3" align="left" valign="center"><span style="font-size:13px;font-family:verdana">May The Force of Open<font color="#ff0000">Stack</font> Be With You,</span> <br><b><i><font face="georgia, serif" size="4">Rico Lin<br></font></i></b>irc: ricolin</td></tr><tr><td colspan="3" align="left" valign="center" style="height:10px;border-bottom:1px dashed rgb(221,221,221)"></td></tr><tr><td colspan="3"></td></tr></tbody></table><br></div></div></div><font size="2" face="tahoma, sans-serif" color="#999999"></font></div></div></div></div></div></div></div></div></div></div>