Page MenuHomePhabricator

prometheus-openstack-exporter: add information about agents
Open, Needs TriagePublic

Description

It would be great to have prometheus-openstack-exporter to generate data about the health of openstack agents (nova, neutron, etc).

Specifically, information like the one contained in this command:

root@cloudcontrol1004:~# neutron agent-list
+--------------------------------------+--------------------+-----------------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host            | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+-----------------+-------------------+-------+----------------+---------------------------+
| 0b2f519f-a5ab-4188-82bf-01431810d55a | DHCP agent         | cloudnet1003    | nova              | :-)   | True           | neutron-dhcp-agent        |
| 1071c198-ed57-4b5a-9439-30e66a31aa69 | Linux bridge agent | cloudvirtan1005 |                   | :-)   | True           | neutron-linuxbridge-agent |
| 28ac0947-f263-4655-98fe-f868325678ae | Linux bridge agent | cloudvirt1015   |                   | xxx   | True           | neutron-linuxbridge-agent |
| 2eeef198-8af7-4e5d-bd73-e14a2a8d2404 | Linux bridge agent | cloudvirtan1004 |                   | :-)   | True           | neutron-linuxbridge-agent |
| 3388792d-560d-4bfe-9054-addf1c239f4a | Linux bridge agent | cloudvirt1027   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 3dd3644d-9a47-4ecd-b4c7-9364c75ac105 | Linux bridge agent | cloudvirt1004   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 3fec4d0a-b65f-4930-9350-e21f473a02bf | Linux bridge agent | cloudvirt1006   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 468aef2a-8eb6-4382-abba-bc284efd9fa5 | DHCP agent         | cloudnet1004    | nova              | :-)   | True           | neutron-dhcp-agent        |
| 49b85656-d67b-44c3-ac71-e8c75b849783 | Linux bridge agent | cloudvirt1029   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 4be214c8-76ef-40f8-9d5d-4c344d213311 | L3 agent           | cloudnet1003    | nova              | :-)   | True           | neutron-l3-agent          |
| 4ec0d5cb-e419-427b-9232-45e49ad3f416 | Linux bridge agent | cloudvirt1005   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 5b2a8c8b-3b13-4607-b0bd-460d507f5de1 | Linux bridge agent | cloudvirt1024   |                   | xxx   | True           | neutron-linuxbridge-agent |
| 65f9d324-5126-4336-8f52-001cd0c9fdd1 | Linux bridge agent | cloudvirt1016   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 6d228267-bfe3-448b-9dc9-9705e5ccde56 | Linux bridge agent | cloudvirt1002   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 6dafa3f3-9aeb-47b6-9535-e0932abe4435 | Linux bridge agent | cloudvirt1014   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 70a51cd5-7d76-40d9-b4f1-6dd556122391 | Linux bridge agent | cloudvirt1013   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 778b2757-088c-4742-8d76-22c3e6d9a306 | Linux bridge agent | cloudvirt1017   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 813c9efb-b2af-4063-a8b3-8e8f1976977c | Linux bridge agent | cloudvirt1025   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 818331b3-930b-4e89-a149-e5b91e145121 | Linux bridge agent | cloudvirt1008   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 88573317-545f-43af-9b5a-f731d43846fd | Linux bridge agent | cloudvirt1009   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 8d0e50cb-ab8d-4923-87f8-b3c93f347be6 | Linux bridge agent | cloudvirt1012   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 8e8cb1fd-62b6-475f-ae2f-2b85355fd3e3 | Linux bridge agent | cloudvirt1030   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 9238d8cd-02cb-4d1f-a629-3b3d8cc9c1bf | Linux bridge agent | cloudnet1003    |                   | :-)   | True           | neutron-linuxbridge-agent |
| 94feb5fd-38c5-4283-9a02-b3ef48f104be | Linux bridge agent | cloudvirt1001   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 970df1d1-505d-47a4-8d35-1b13c0dfe098 | L3 agent           | cloudnet1004    | nova              | :-)   | True           | neutron-l3-agent          |
| a3d2685e-f826-4666-993c-0ad304718d41 | Linux bridge agent | cloudvirt1026   |                   | :-)   | True           | neutron-linuxbridge-agent |
| ad3461d7-b79e-4279-921d-5a476e296767 | Linux bridge agent | cloudnet1004    |                   | :-)   | True           | neutron-linuxbridge-agent |
| afcb9b7f-c1a6-4ff4-9b10-92bfbe8d1a56 | Linux bridge agent | cloudvirtan1002 |                   | :-)   | True           | neutron-linuxbridge-agent |
| afe173eb-35ba-444a-9960-899629786d2f | Linux bridge agent | cloudvirtan1003 |                   | :-)   | True           | neutron-linuxbridge-agent |
| b0f1cdf2-8d03-4f7b-978c-201ecea69b84 | Linux bridge agent | cloudvirt1020   |                   | :-)   | True           | neutron-linuxbridge-agent |
| b296d716-d72f-479e-9977-5e06637ca89d | Linux bridge agent | cloudvirt1028   |                   | :-)   | True           | neutron-linuxbridge-agent |
| b2f9da63-2f16-4aa5-9400-ae708a733f91 | Linux bridge agent | cloudvirt1021   |                   | :-)   | True           | neutron-linuxbridge-agent |
| bad663b3-fd25-4393-a546-4b1b4bdec4db | Linux bridge agent | cloudvirtan1001 |                   | :-)   | True           | neutron-linuxbridge-agent |
| c2403ab2-512a-4663-8f4c-3851940d3847 | Linux bridge agent | cloudvirt1018   |                   | :-)   | True           | neutron-linuxbridge-agent |
| d475e07d-52b3-476e-9a4f-e63b21e1075e | Metadata agent     | cloudnet1004    |                   | :-)   | True           | neutron-metadata-agent    |
| dfe704de-9bd4-4e8c-aa2f-ce483c001be3 | Linux bridge agent | cloudvirt1003   |                   | :-)   | True           | neutron-linuxbridge-agent |
| e349b624-d593-43cf-ac9a-59f473cfa5c6 | Metadata agent     | cloudnet1003    |                   | :-)   | True           | neutron-metadata-agent    |
| e382a233-e6a0-422e-9d2e-5651082783fc | Linux bridge agent | cloudvirt1022   |                   | :-)   | True           | neutron-linuxbridge-agent |
| e9f219db-efdd-4157-9045-48316c61de5e | Linux bridge agent | cloudvirt1023   |                   | :-)   | True           | neutron-linuxbridge-agent |
| edc264e5-6e97-49aa-981a-95f81d81a3ab | Linux bridge agent | cloudvirt1007   |                   | :-)   | True           | neutron-linuxbridge-agent |
| fc45a34d-d8a4-45fe-982d-5b4b7a8fcde1 | Linux bridge agent | cloudvirt1019   |                   | :-)   | True           | neutron-linuxbridge-agent |
+--------------------------------------+--------------------+-----------------+-------------------+-------+----------------+---------------------------+
root@cloudcontrol1004:~# nova hypervisor-list
+----+-----------------------------+-------+---------+
| ID | Hypervisor hostname         | State | Status  |
+----+-----------------------------+-------+---------+
| 1  | cloudvirt1021.eqiad.wmnet   | up    | enabled |
| 2  | cloudvirt1022.eqiad.wmnet   | up    | enabled |
| 3  | cloudvirt1019.eqiad.wmnet   | up    | enabled |
| 4  | cloudvirt1020.eqiad.wmnet   | up    | enabled |
| 5  | cloudvirt1023.eqiad.wmnet   | up    | enabled |
| 6  | cloudvirt1024.eqiad.wmnet   | down  | enabled |
| 7  | cloudvirt1018.eqiad.wmnet   | up    | enabled |
| 8  | cloudvirt1017.eqiad.wmnet   | up    | enabled |
| 9  | cloudvirt1016.eqiad.wmnet   | up    | enabled |
| 10 | cloudvirt1015.eqiad.wmnet   | down  | enabled |
| 11 | cloudvirt1014.eqiad.wmnet   | up    | enabled |
| 12 | cloudvirtan1001.eqiad.wmnet | up    | enabled |
| 13 | cloudvirtan1005.eqiad.wmnet | up    | enabled |
| 14 | cloudvirtan1003.eqiad.wmnet | up    | enabled |
| 15 | cloudvirtan1002.eqiad.wmnet | up    | enabled |
| 16 | cloudvirtan1004.eqiad.wmnet | up    | enabled |
| 17 | cloudvirt1025.eqiad.wmnet   | up    | enabled |
| 18 | cloudvirt1013.eqiad.wmnet   | up    | enabled |
| 19 | cloudvirt1030.eqiad.wmnet   | up    | enabled |
| 20 | cloudvirt1029.eqiad.wmnet   | up    | enabled |
| 21 | cloudvirt1026.eqiad.wmnet   | up    | enabled |
| 22 | cloudvirt1027.eqiad.wmnet   | up    | enabled |
| 23 | cloudvirt1028.eqiad.wmnet   | up    | enabled |
| 24 | cloudvirt1012.eqiad.wmnet   | up    | enabled |
| 25 | cloudvirt1009.eqiad.wmnet   | up    | enabled |
| 26 | cloudvirt1008.eqiad.wmnet   | up    | enabled |
| 27 | cloudvirt1001.eqiad.wmnet   | up    | enabled |
| 28 | cloudvirt1002.eqiad.wmnet   | up    | enabled |
| 29 | cloudvirt1003.eqiad.wmnet   | up    | enabled |
| 30 | cloudvirt1004.eqiad.wmnet   | up    | enabled |
| 31 | cloudvirt1006.eqiad.wmnet   | up    | enabled |
| 32 | cloudvirt1005.eqiad.wmnet   | up    | enabled |
| 33 | cloudvirt1007.eqiad.wmnet   | up    | enabled |
+----+-----------------------------+-------+---------+

It would be great to have this information to reach our grafana dashboards like https://grafana.wikimedia.org/d/000000579/wmcs-openstack-eqiad1?refresh=30s&orgId=1

Event Timeline

aborrero created this task.Thu, Aug 22, 9:30 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptThu, Aug 22, 9:30 AM
aborrero updated the task description. (Show Details)Thu, Aug 22, 9:37 AM