<div dir="ltr"><div>Do you want this to be done in Ceilometer? I mean, complex calculations are normally executed in the metric backend, such as Gnocchi. You could collect data for all clusters, and persist in the backend. Then, you do the calculation mean/min/max/rate:xxx, and so on in Gnocchi for instance.</div><div><br></div><div>The calculation can be done in the dynamic pollsters as well though. They accept python expressions, where you can do basically anything you want. Also, it is possible to use nested dynamic pollsters to collect and combine data from different sources together.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 31, 2023 at 1:19 PM Uday Dikshit <<a href="mailto:uday.dikshit@myrealdata.in">uday.dikshit@myrealdata.in</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 class="msg-5194761339796455595">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Hey Thomas<br>
This was really helpful. I had another doubt, how can I add a complex calculation such as taking mean of CPU utilization of all nodes that are present in a senlin cluster with senlin cluster ID as its primary key.</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="m_-5194761339796455595Signature">
<div><span style="font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif;margin:0px;text-align:start;background-color:rgb(255,255,255);color:rgb(0,0,0)"><span style="font-size:13px;font-family:Arial,Helvetica,Verdana,sans-serif;margin:0px;letter-spacing:0.14px;color:rgb(80,80,80);background-color:rgb(255,255,255)"><span style="margin:0px"><span style="margin:0px;color:rgb(16,166,76)"><span style="margin:0px"><span style="margin:0px"><b><span style="margin:0px"><span style="font-family:"PT Sans",sans-serif;margin:0px"><span style="margin:0px"><span style="margin:0px"><span style="margin:0px"><span style="font-size:22px;margin:0px">Thanks
& Regards,</span></span></span></span></span></span></b></span></span></span></span></span></span>
<div style="font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif;margin:0px;text-align:start;background-color:rgb(255,255,255);color:rgb(0,0,0)">
<table style="font-size:15px;font-family:Poppins;letter-spacing:0.14px;max-width:100%;background-color:rgb(255,255,255);color:rgb(32,31,30)">
<tbody>
<tr>
<td style="color:rgb(51,51,51)"><img style="margin: 0px 5px 0px 0px; max-width: 100%; width: 113px; height: auto;" src="https://acefone.com/email-signature/logo-new.png"></td>
<td style="color:rgb(51,51,51)">
<table style="max-width:100%;border-radius:45px;padding:20px 10px;background-color:rgb(16,166,76)">
<tbody>
<tr>
<td><a href="https://www.facebook.com/real.time.data.services/" rel="noopener noreferrer" style="margin:0px;text-decoration-line:none;outline:0px;color:rgb(0,163,254);word-break:break-all" target="_blank"><img style="margin: 0px; max-width: 100%;" src="https://acefone.com/email-signature/facebook.png"></a></td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/company/real-time-data-services/mycompany/" rel="noopener noreferrer" style="margin:0px;text-decoration-line:none;outline:0px;color:rgb(0,163,254);word-break:break-all" target="_blank"><img style="margin: 0px; max-width: 100%;" src="https://acefone.com/email-signature/linkedin.png"></a></td>
</tr>
<tr>
<td><a href="https://twitter.com/rtdsindia" rel="noopener noreferrer" style="margin:0px;text-decoration-line:none;outline:0px;color:rgb(0,163,254);word-break:break-all" target="_blank"><img style="margin: 0px; max-width: 100%;" src="https://acefone.com/email-signature/twitter.png"></a></td>
</tr>
<tr>
<td><a href="https://www.youtube.com/channel/UCq93lA3ch6Pt5GzOAhRwgpw" rel="noopener noreferrer" style="margin:0px;text-decoration-line:none;outline:0px;color:rgb(0,163,254);word-break:break-all" target="_blank"><img style="margin: 0px; max-width: 100%;" src="https://acefone.com/email-signature/youtube.png"></a></td>
</tr>
<tr>
<td><a href="https://www.glassdoor.co.in/Reviews/Real-Time-Data-Services-Reviews-E527061.htm" rel="noopener noreferrer" style="margin:0px;text-decoration-line:none;outline:0px;color:rgb(0,163,254);word-break:break-all" target="_blank"><img style="margin: 0px; max-width: 100%;" src="https://acefone.com/email-signature/glassdoor.png"></a></td>
</tr>
</tbody>
</table>
</td>
<td style="color:rgb(51,51,51)">
<table style="max-width:100%" id="m_-5194761339796455595tableSelected0">
<tbody>
<tr>
<td>
<div style="font-weight:700;font-size:22px;font-family:"PT Sans",sans-serif;margin:0px 0px 0px 10px;color:rgb(16,166,76)">
</div>
<div style="font-weight:700;font-size:22px;font-family:"PT Sans",sans-serif;margin:0px 0px 0px 10px;color:rgb(16,166,76)">
Uday Dikshit</div>
</td>
</tr>
<tr>
<td>
<div style="border-width:0px 0px 2px;border-bottom-style:solid;border-bottom-color:rgb(16,166,76);margin:0px 0px 0px 10px;padding:0px 0px 3px">
<font face="PT Sans, sans-serif, sans-serif"><span style="font-size:16px">Cloud DevOps Engineer, Product Development</span></font></div>
</td>
</tr>
<tr>
<td>
<div style="font-size:12.5px;font-family:"PT Sans",sans-serif;margin:3px 0px 0px 10px;padding:0px 0px 0px 20px;background-position:left center;background-repeat:no-repeat;background-image:url("https://acefone.com/email-signature/message.png");color:rgb(36,36,36)">
<a href="mailto:uday.dikshit@myrealdata.in" target="_blank">uday.dikshit@myrealdata.in</a></div>
</td>
</tr>
<tr>
<td>
<div style="font-size:12.5px;font-family:"PT Sans",sans-serif;margin:3px 0px 0px 10px;padding:0px 0px 0px 20px;background-position:left center;background-repeat:no-repeat;background-image:url("https://acefone.com/email-signature/web-url.png");color:rgb(36,36,36)">
<a href="http://www.myrealdata.in/" rel="noopener noreferrer" style="margin:0px;text-decoration-line:none;outline:0px;color:rgb(0,163,254);word-break:break-all" target="_blank">www.myrealdata.in</a></div>
</td>
</tr>
<tr>
<td>
<div style="font-size:12.5px;font-family:"PT Sans",sans-serif;margin:3px 0px 0px 10px;padding:0px 0px 0px 20px;background-position:left top 5px;background-repeat:no-repeat;background-image:url("https://acefone.com/email-signature/address.png");color:rgb(36,36,36)">
809-A Udyog Vihar,<br>
Phase 5, Gurugram - 122015, Haryana</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="m_-5194761339796455595appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-5194761339796455595divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Thomas Goirand <<a href="mailto:zigo@debian.org" target="_blank">zigo@debian.org</a>><br>
<b>Sent:</b> Friday, January 27, 2023 8:54 PM<br>
<b>To:</b> Uday Dikshit <<a href="mailto:uday.dikshit@myrealdata.in" target="_blank">uday.dikshit@myrealdata.in</a>>; <a href="mailto:openstack-discuss@lists.openstack.org" target="_blank">openstack-discuss@lists.openstack.org</a> <<a href="mailto:openstack-discuss@lists.openstack.org" target="_blank">openstack-discuss@lists.openstack.org</a>><br>
<b>Subject:</b> Re: How to create a dynamic pollster subsystem to create a pollster for senlin cluster</font>
<div> </div>
</div>
<div><font size="2"><span style="font-size:11pt">
<div>On 1/25/23 10:04, Uday Dikshit wrote:<br>
> Hello Team<br>
> We are a public cloud provider based on Openstack.<br>
> We are working to create Autoscaling with aodh and senlin in <br>
> Kolla-ansible Openstack Wallaby release. We are facing an issue as <br>
> ceilometer does not support metrics for senlin cluster as a resource. <br>
> Our aim is to use <br>
> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.openstack.org_ceilometer_wallaby_admin_telemetry-2Ddynamic-2Dpollster.html&d=DwIDaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=58AkTXQK-t27foam0JxQj_p2S7oML-5RlT2bY2LISOk&m=KrUyOp7R8Eq0a_TOSOboQA2IOuHFlEtSswxM7uAB0f4&s=-LMnIXpO63G3i6FF9aX_zIGELd_4Z32B8jN24N8Yy2Y&e=" target="_blank">
https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.openstack.org_ceilometer_wallaby_admin_telemetry-2Ddynamic-2Dpollster.html&d=DwIDaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=58AkTXQK-t27foam0JxQj_p2S7oML-5RlT2bY2LISOk&m=KrUyOp7R8Eq0a_TOSOboQA2IOuHFlEtSswxM7uAB0f4&s=-LMnIXpO63G3i6FF9aX_zIGELd_4Z32B8jN24N8Yy2Y&e=</a>
<<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.openstack.org_ceilometer_wallaby_admin_telemetry-2Ddynamic-2Dpollster.html&d=DwIDaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=58AkTXQK-t27foam0JxQj_p2S7oML-5RlT2bY2LISOk&m=KrUyOp7R8Eq0a_TOSOboQA2IOuHFlEtSswxM7uAB0f4&s=-LMnIXpO63G3i6FF9aX_zIGELd_4Z32B8jN24N8Yy2Y&e=" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.openstack.org_ceilometer_wallaby_admin_telemetry-2Ddynamic-2Dpollster.html&d=DwIDaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=58AkTXQK-t27foam0JxQj_p2S7oML-5RlT2bY2LISOk&m=KrUyOp7R8Eq0a_TOSOboQA2IOuHFlEtSswxM7uAB0f4&s=-LMnIXpO63G3i6FF9aX_zIGELd_4Z32B8jN24N8Yy2Y&e=</a>>
to generate a pollster to collect data for senlin. We were looking if anybody in the community has ever used this feature.<br>
<br>
Hi,<br>
<br>
Not only we use that feature in production, but I also used the dynamic <br>
pollster stuff on the compute pollster using the command-line thingy. <br>
The result is this project:<br>
<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__salsa.debian.org_openstack-2Dteam_services_ceilometer-2Dinstance-2Dpoller_&d=DwIDaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=58AkTXQK-t27foam0JxQj_p2S7oML-5RlT2bY2LISOk&m=KrUyOp7R8Eq0a_TOSOboQA2IOuHFlEtSswxM7uAB0f4&s=PZG_y8gQzPmKPmaCX1OWHNA5Zg9tFJ0O4zdZZkrUnIY&e=" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__salsa.debian.org_openstack-2Dteam_services_ceilometer-2Dinstance-2Dpoller_&d=DwIDaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=58AkTXQK-t27foam0JxQj_p2S7oML-5RlT2bY2LISOk&m=KrUyOp7R8Eq0a_TOSOboQA2IOuHFlEtSswxM7uAB0f4&s=PZG_y8gQzPmKPmaCX1OWHNA5Zg9tFJ0O4zdZZkrUnIY&e=</a><br>
<br>
You can also read bits of docs of OCI about it:<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__salsa.debian.org_openstack-2Dteam_debian_openstack-2Dcluster-2Dinstaller-23configuring-2Da-2Dcustom-2Dmetric-2Dand-2Dbilling&d=DwIDaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=58AkTXQK-t27foam0JxQj_p2S7oML-5RlT2bY2LISOk&m=KrUyOp7R8Eq0a_TOSOboQA2IOuHFlEtSswxM7uAB0f4&s=HB4uQxN4HzA-iHQ1Cvlt-UVhF6oH5jzY0xmJ8Afu5i8&e=" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__salsa.debian.org_openstack-2Dteam_debian_openstack-2Dcluster-2Dinstaller-23configuring-2Da-2Dcustom-2Dmetric-2Dand-2Dbilling&d=DwIDaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=58AkTXQK-t27foam0JxQj_p2S7oML-5RlT2bY2LISOk&m=KrUyOp7R8Eq0a_TOSOboQA2IOuHFlEtSswxM7uAB0f4&s=HB4uQxN4HzA-iHQ1Cvlt-UVhF6oH5jzY0xmJ8Afu5i8&e=</a><br>
<br>
I hope this helps. If you need more help, please do reply ...<br>
<br>
Cheers,<br>
<br>
Thomas Goirand (zigo)<br>
<br>
<br>
<br>
----------<br>
<br>
This email has been scanned for spam and viruses by Proofpoint Essentials. Visit the following link to report this email as spam:<br>
<a href="https://us1.proofpointessentials.com/index01.php?mod_id=11&mod_option=logitem&mail_id=1674833071-prElz2OKrtG9&r_address=uday.dikshit%40myrealdata.in&report=1" target="_blank">https://us1.proofpointessentials.com/index01.php?mod_id=11&mod_option=logitem&mail_id=1674833071-prElz2OKrtG9&r_address=uday.dikshit%40myrealdata.in&report=1</a><br>
</div>
</span></font></div>
</div>
</div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Rafael Weingärtner</div></div>