<div dir="ltr"><div dir="ltr"><div>Hi Mohammed,</div><div><br></div><div>Thanks for your feedback =).<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em sex, 7 de jun de 2019 às 19:43, Mohammed Naser <<a href="mailto:mnaser@vexxhost.com">mnaser@vexxhost.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Iury,<br>
<br>
This seems pretty awesome.  I threw in some comments<br>
<br>
On Fri, Jun 7, 2019 at 11:08 AM Iury Gregory <<a href="mailto:iurygregory@gmail.com" target="_blank">iurygregory@gmail.com</a>> wrote:<br>
><br>
> Greetings Ironicers!<br>
><br>
> I would like to have your input on the matter of moving the ironic-prometheus-exporter to Ironic umbrella.<br>
><br>
> What is the ironic-prometheus-exporter?<br>
> The ironic-prometheus-exporter[1] provides a way to export hardware sensor data from<br>
> Ironic project in OpenStack to Prometheus [2]. It's implemented as an oslo-messaging notification driver to get the sensor data and a Flask Application to export the metrics to Prometheus. It can not only be used in metal3-io but also in any OpenStack deployment which includes Ironic service.<br>
<br>
This seems really neat.  From my perspective, it seems like it waits<br>
for notifications, and then writes it out to a file.  The flask server<br>
seems to do nothing but pretty much serve the contents at /metrics.  I<br>
think we should be doing more of this inside OpenStack to be honest<br>
and this can be really useful in the perspective of operators.<br></blockquote><div><br></div><div>The notifications are the sensor data of each baremetal node, each node will have a file with the sensor data as metrics in the Prometheus format.</div><div>Since Prometheus is pull-based the Flask application wlil merge the content of all files to provide to the Prometheus when necessary.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I don't want to complicate this more however, but I would love for<br>
this to be a pattern/framework that other projects can adopt.<br></blockquote><div><br></div><div>Agree, maybe we should talk in the IRC how the pattern/framework would look like and this can be done before moving the project or something</div><div>to be done trough reviews after the project is moved.<br></div><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> How to ensure the sensor data will follow the Prometheus format?<br>
> We are using the prometheus client_python [3] to generate the file with the metrics that come trough the oslo notifier plugin.<br>
><br>
> How it will be tested on the gate?<br>
> Virtualbmc can't provide sensor data that the actual plugin supports. We would collect sample metrics from the hardware and use it in the unit tests.<br>
><br>
> Maybe we should discuss this in the next ironic weekly meeting (10th June)?<br>
><br>
> [1] <a href="https://github.com/metal3-io/ironic-prometheus-exporter" rel="noreferrer" target="_blank">https://github.com/metal3-io/ironic-prometheus-exporter</a><br>
> [2] <a href="https://prometheus.io/" rel="noreferrer" target="_blank">https://prometheus.io/</a><br>
> [3] <a href="https://github.com/prometheus/client_python" rel="noreferrer" target="_blank">https://github.com/prometheus/client_python</a><br>
><br>
> --<br>
> Att[]'s<br>
> Iury Gregory Melo Ferreira<br>
> MSc in Computer Science at UFCG<br>
> Part of the puppet-manager-core team in OpenStack<br>
> Software Engineer at Red Hat Czech<br>
> Social: <a href="https://www.linkedin.com/in/iurygregory" rel="noreferrer" target="_blank">https://www.linkedin.com/in/iurygregory</a><br>
> E-mail:  <a href="mailto:iurygregory@gmail.com" target="_blank">iurygregory@gmail.com</a><br>
<br>
<br>
<br>
-- <br>
Mohammed Naser — vexxhost<br>
-----------------------------------------------------<br>
D. 514-316-8872<br>
D. 800-910-1726 ext. 200<br>
E. <a href="mailto:mnaser@vexxhost.com" target="_blank">mnaser@vexxhost.com</a><br>
W. <a href="http://vexxhost.com" rel="noreferrer" target="_blank">http://vexxhost.com</a><br>
</blockquote></div><br clear="all"><br>-- <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"><span style="background-color:rgb(255,255,255)"><font style="background-color:transparent"><div><div dir="ltr"><div><div style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:12.8px"><i style="font-size:13px"><font style="color:rgb(0,0,0)">Att[]'s</font><br><font color="#500050"><span style="color:rgb(0,0,0)">Iury Gregory Melo Ferreira</span> </font><br></i><i><font color="#000000">MSc in Computer Science at UFCG<br></font></i></div><div style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:12.8px"><i><font color="#000000">Part of the puppet-manager-core team in OpenStack</font></i><br><i><font color="#000000"><span style="background-color:rgb(255,255,255)"><font style="background-color:transparent"><i><font color="#000000">Software Engineer at Red Hat Czech</font></i></font></span></font></i></div><div><font style="font-family:arial,sans-serif;font-size:12.8px" color="#000000"><i>Social</i>:</font><font style="font-family:arial,sans-serif;font-size:12.8px"><font color="#888888"> </font><a href="https://www.linkedin.com/in/iurygregory" target="_blank"><font color="#0b5394">https://www.linkedin.com/in/iurygregory</font></a></font></div><div><i style="color:rgb(136,136,136);background-color:transparent;font-size:13px"><font color="#500050"><span style="color:rgb(0,0,0)">E-mail: </span> </font><a href="mailto:iurygregory@gmail.com" style="color:rgb(0,84,136)" target="_blank">iurygregory@gmail.com</a></i></div></div></div></div></font></span></div></div></div></div></div></div></div></div></div></div></div>