Hey,

Peeking in the source code I assume there is one metric which causes an 
error:
https://github.com/openstack-exporter/openstack-exporter/blob/v1.0.0/exporters/exporter.go#L97
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

On Wednesday, 19 August 2020 at 07:15:51 UTC+2 [email protected] wrote:

> 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.
>
> On Saturday, August 15, 2020 at 4:11:00 PM UTC+5:30 [email protected] 
> wrote:
>
>> 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
>>
>> On Friday, 14 August 2020 at 13:55:50 UTC+2 [email protected] wrote:
>>
>>> I think you need to look at the source code for the Openstack exporter :)
>>>
>>> On Fri, Aug 14, 2020 at 7:49 AM Saurabh Jain <[email protected]> 
>>> wrote:
>>>
>>>> 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
>>>>
>>>> -- 
>>>> 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 [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/prometheus-users/b89b2c12-ec2b-4559-9ee9-617ad4d1c697o%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/prometheus-users/b89b2c12-ec2b-4559-9ee9-617ad4d1c697o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/6a5865c5-e1ec-4b91-ac3d-cd0817422a85n%40googlegroups.com.

Reply via email to