Openstack exporter Query

34 views
Skip to first unread message

Saurabh Jain

unread,
Aug 14, 2020, 7:49:21 AM8/14/20
to Prometheus Users
Hi Everyone ...


I need your advice related to openstack_neutron_up metric from openstack exporter.The value which we are getting for this metric is 0 .What does this means. Pls suggest.

Also How to monitor Horizon service. PLs advice.

Thanks
Saurabh

Laurent Dumont

unread,
Aug 14, 2020, 7:55:50 AM8/14/20
to Saurabh Jain, Prometheus Users
I think you need to look at the source code for the Openstack exporter :)

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b89b2c12-ec2b-4559-9ee9-617ad4d1c697o%40googlegroups.com.

Michael Wagner

unread,
Aug 15, 2020, 6:41:00 AM8/15/20
to Prometheus Users
Hey Saurabh,
can you provide the exporter you use and its version? There are multiple openstack exporters and without a version it's hard to tell the exact solution. However, as I recently looked into the codebase the metric describes that the neutron service can't be reached. As I recall it is a catch-all when exporting neutron metrics which gets set to 0 if neutron service is unavailable.

Best,
Michael

s.saurab...@gmail.com

unread,
Aug 19, 2020, 1:15:51 AM8/19/20
to Prometheus Users
Hey,

Thanks for the update.

Openstack Exporter version which we are using is 1.0.0. The point is the status of different neutron services for eg neutron-openvswitch-agent,neutron-l3-agent etc are in UP State then why the metric value of openstack_neutron_up is 0 .

Even I checked with Openstack team and they confirmed that the  neutron service is available.

Michael Wagner

unread,
Aug 19, 2020, 4:37:39 AM8/19/20
to Prometheus Users
Hey,

Peeking in the source code I assume there is one metric which causes an error:
So, if one metric fails being collected within the neutron export, independent of the reason, it is set to `0`.

Assuming that you run the exporter as non-admin there could be errors in metrics related to missing access rights. This should also be within the logs.
To mitigate that you can disable the metrics causing errors.

Best,
Michael

Reply all
Reply to author
Forward
0 new messages