Skip to content

Conversation

mkuratczyk
Copy link
Contributor

This command displays cluster-wide message size
statistics. It's less detailed than what can be
retrieved from the Prometheus endpoint, but
it'll be available to all users, regardless of their monitoring setup, or lack thereof.

Example:

$ rabbitmq-diagnostics -n rabbit-1 message_size_stats
Gathering message size statistics from cluster via rabbit-1@K6L59PF0JR ...
┌────────────────────────┬───────┬────────────┐
│ Message Size           │ Count │ Percentage │
├────────────────────────┼───────┼────────────┤
│ below 100B             │ 1409  │ 19.90      │
├────────────────────────┼───────┼────────────┤
│ between 100B and 1KB   │ 2847  │ 40.21      │
├────────────────────────┼───────┼────────────┤
│ between 1KB and 10KB   │ 40    │ 0.56       │
├────────────────────────┼───────┼────────────┤
│ between 10KB and 100KB │ 2785  │ 39.33      │
├────────────────────────┼───────┼────────────┤
│ between 100KB and 1MB  │ 0     │ 0.00       │
├────────────────────────┼───────┼────────────┤
│ between 1MB and 10MB   │ 0     │ 0.00       │
├────────────────────────┼───────┼────────────┤
│ between 10MB and 50MB  │ 0     │ 0.00       │
├────────────────────────┼───────┼────────────┤
│ between 50MB and 100MB │ 0     │ 0.00       │
├────────────────────────┼───────┼────────────┤
│ above 100MB            │ 0     │ 0.00       │
└────────────────────────┴───────┴────────────┘

@mkuratczyk mkuratczyk marked this pull request as draft September 17, 2025 13:55
@mkuratczyk mkuratczyk force-pushed the message_size_stats-cli-command branch 2 times, most recently from 8ae2405 to fad0b8d Compare September 17, 2025 15:24
@michaelklishin michaelklishin added this to the 4.3.0 milestone Sep 17, 2025
@mkuratczyk mkuratczyk force-pushed the message_size_stats-cli-command branch 3 times, most recently from e1c442c to f39c27f Compare September 18, 2025 11:42
@mkuratczyk mkuratczyk marked this pull request as ready for review September 18, 2025 12:07
mkuratczyk and others added 2 commits September 23, 2025 22:53
This command displays cluster-wide message size
statistics. It's less detailed than what can be
retrieved from the Prometheus endpoint, but
it'll be available to all users, regardless of their
monitoring setup, or lack thereof.
@michaelklishin michaelklishin force-pushed the message_size_stats-cli-command branch from f39c27f to 4b7230b Compare September 24, 2025 03:14
The whole point of introducing rabbitmq-diagnostics,
rabbitmq-queues, rabbitmq-streams is to stop
growing the ctl command list, which has been massive
even five years ago.
@michaelklishin
Copy link
Collaborator

michaelklishin commented Sep 24, 2025

Given how many commands rabbitmqctl already has, I think we should only expose this new command via rabbitmq-diagnostics.

@michaelklishin michaelklishin changed the title rabbitmq-diagnostics message_size_stats Introduce a 'rabbitmq-diagnostics message_size_stats' for reasoning about message size distribution Sep 24, 2025
@michaelklishin michaelklishin merged commit 512e6a4 into main Sep 24, 2025
286 of 287 checks passed
@michaelklishin michaelklishin deleted the message_size_stats-cli-command branch September 24, 2025 04:10
mergify bot pushed a commit that referenced this pull request Sep 24, 2025
(cherry picked from commit 4b7230b)
michaelklishin added a commit that referenced this pull request Sep 24, 2025
Introduce a 'rabbitmq-diagnostics message_size_stats' for reasoning about message size distribution (backport #14560)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants