rabbitmq / rabbitmq-server

Open source RabbitMQ: core server and tier 1 (built-in) plugins
https://www.rabbitmq.com/
Other
12.3k stars 3.91k forks source link

HTTP API: `GET /api/nodes/{node}` should return important information when stats are disabled #8556

Open lukebakken opened 1 year ago

lukebakken commented 1 year ago

Is your feature request related to a problem? Please describe.

To get information about partitions, you must have management statistics enabled. Ideally, it would be great to still get that information, and other critical info, when management stats are disabled.

Here is a script I made to make several HTTP API requests and write their results to a file:

https://github.com/lukebakken/vesc-1073/blob/main/http-api-requests.ps1

This is what is returned when stats are disabled: no-stats-output.txt

This is what is returned when stats are enabled. Note that partitions, mem_alarm and disk_free_alarm are returned. I would consider those to be important: with-stats-output.txt

Describe the solution you'd like

The HTTP API request should return information about partitions and alarms.

Describe alternatives you've considered

N/A

Additional context

Related to:

lukebakken commented 1 year ago

9465 implements the equivalent of partitions for the Prometheus endpoint.