Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #283 issue #284

Merged
merged 2 commits into from
Apr 3, 2023
Merged

fix #283 issue #284

merged 2 commits into from
Apr 3, 2023

Conversation

odnobit
Copy link
Contributor

@odnobit odnobit commented Apr 2, 2023

openstack v1.6.0 stable:

curl 1.2.3.4:9198/metrics -s | grep "router{"
    ... nothing ...

in logs we can see this error:
time="2023-04-02T09:19:52Z" level=error msg="Failed to collect metric for exporter: neutron, error: failed to collect metric: routers, error: Resource not found: [GET https://1.2.3.4:9696/v2.0/routers/1f60084d-b713-47c7-966a-e3b1f8b442d5/l3-agents], error message: {\"NeutronError\": {\"type\": \"HTTPNotFound\", \"message\": \"The resource could not be found.\", \"detail\": \"\"}}" source="exporter.go:124"

with my fix:

curl 1.2.3.4:9198/metrics -s | grep "router{"
    openstack_neutron_router{admin_state_up="true",external_network_id="",id="1f60084d-b713-47c7-966a-e3b1f8b442d5",name="r",project_id="35f0551d8cf547bca896b09ba1162e70",status="ACTIVE"} 1
		....

@niedbalski niedbalski merged commit 125b014 into openstack-exporter:main Apr 3, 2023
@odnobit odnobit deleted the fix_router_metrics_ovn branch September 18, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants