<div dir="ltr"><div>This situation can be caused by a lot of different things.</div><div><ul><li>"gnocchi resource-type list" will show you the resource-types configured. Make sure you have configured the resource types that Ceilometer is pushing resources to</li><li>Make sure you have enabled metrics to be collected via polling.yml file</li><li>Make sure you have configured the "gnocchi_resources.yaml" file, and that the link between metrics, resources, and attributes to be pushed are correctly created</li><li>If want to generate metrics based on events, you then need to check : meters.yaml file, to see if everything is fine there<br></li><li>Make sure Ceilometer is pushing metrics and resource attributes to gnocchi. When the push is executed you will see the following DEBUG log messages:</li><ul><li>Processing sample [%s] for resource ID [%s]</li><li>%d measures posted against %d metrics through %d resources</li><li>metric %s is not handled by Gnocchi (this one will appear if the metric is not configured to be pushed in the  "gnocchi_resources.yaml")<br></li></ul></ul></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 3, 2022 at 6:33 AM Molka Gharbaoui <<a href="mailto:Molka.Gharbaoui@santannapisa.it">Molka.Gharbaoui@santannapisa.it</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 dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thank you Matthias for your reply.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Unfortunately, from the logs I still cannot understand what is the issue.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Could someone kindly indicate me how ceilometer and gnocchi should be configured to get the data? </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
For example in this link: <a href="https://docs.openstack.org/ceilometer/latest/install/install-base-ubuntu.html" id="gmail-m_1294978215629484656LPNoLPOWALinkPreview" target="_blank">https://docs.openstack.org/ceilometer/latest/install/install-base-ubuntu.html</a> the endpoints should use the following
 URL: <a href="http://controller:8041" id="gmail-m_1294978215629484656LPlnk632353" target="_blank">http://controller:8041</a> while in my case the 8041 port is not even listening and the API indicated in the dashboard for Gnocchi is <a href="http://controller:8041" id="gmail-m_1294978215629484656LPlnk672924" target="_blank">http://</a>x.x.x.x/metric.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thank you in advance.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div></div>
<br>
<div id="gmail-m_1294978215629484656appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_1294978215629484656divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Da:</b> Matthias Runge <<a href="mailto:mrunge@matthias-runge.de" target="_blank">mrunge@matthias-runge.de</a>><br>
<b>Inviato:</b> lunedì 28 febbraio 2022 19:37<br>
<b>A:</b> <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>Oggetto:</b> Re: [Devstack][Gnocchi][Ceilometer] Not able to retrieve metrics using ceilometer and gnocchi</font>
<div> </div>
</div>
<div><font size="2"><span style="font-size:11pt">
<div>On 2/28/22 17:58, Molka Gharbaoui wrote:<br>
> Hi all,<br>
> <br>
> I installed devstack and ceilometer by adding the following lines in the <br>
> local.conf file:<br>
> <br>
> enable_plugin ceilometer <a href="https://opendev.org/openstack/ceilometer.git" target="_blank">
https://opendev.org/openstack/ceilometer.git</a><br>
> CEILOMETER_BACKEND=gnocchi<br>
> <br>
> Devstack (yoga) works correctly (I am able to create images, instances, <br>
> etc.). The problem is that I cannot visualize the metrics. Using <br>
> "gnocchi metric list" and "gnocchi resource list" commands the result is <br>
> empty.<br>
> <br>
> When I use the "--debug" option, no errors are plotted but the body <br>
> response is empty.<br>
> <br>
> "ceilometer-upgrade" gives the following error: DEBUG <br>
> ceilometer.cmd.storage Upgrade Gnocchi resource types upgrade <br>
> /opt/stack/ceilometer/ceilometer/cmd/storage.py:42<br>
> <br>
> "ceilometer-polling" prints "The resource could not be found".<br>
> <br>
> I have a running instance.<br>
> <br>
> Could you help me in retrieving the metrics from openstack?<br>
<br>
That means, that ceilometer apparently either doesn't get any updates <br>
from the underlying services OR it doesn't send the metrics over to gnocchi.<br>
<br>
You should check the ceilometer logs for errors. Also gnocchi logs could <br>
reveal issues.<br>
<br>
Matthias<br>
<br>
<br>
</div>
</span></font></div>
</div>

</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Rafael Weingärtner</div></div></div>