Skip to content

Add metrics_labels to MUTABLE_CONFIG_KEYS to introduce the value in 3.13 migrated queues config, in line with 4.2 queues - #651

Merged
kjnilsson merged 1 commit into
rabbitmq:mainfrom
elo-magnier-7s:feat/elo/bug/bring_raft_back
Aug 18, 2026
Merged

Add metrics_labels to MUTABLE_CONFIG_KEYS to introduce the value in 3.13 migrated queues config, in line with 4.2 queues#651
kjnilsson merged 1 commit into
rabbitmq:mainfrom
elo-magnier-7s:feat/elo/bug/bring_raft_back

Conversation

@elo-magnier-7s

Copy link
Copy Markdown
Contributor

Proposed Changes

This is the companion to rabbitmq/rabbitmq-server#17184, which makes metrics_labels as an allowed mutable key.

Types of Changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes issue rabbitmq-server)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (correction or otherwise)
  • Cosmetics (whitespace, appearance)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you're unsure about any of them, don't hesitate to ask on the
mailing list. We're here to help! This is simply a reminder of what we are
going to look for before merging your code.

  • Mandatory: I (or my employer/client) have have signed the CA (see https://github.com/rabbitmq/cla)
  • I have read the CONTRIBUTING.md document
  • All tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in related repositories

Further Comments

I am not sure of the status of our CA/CLA, we have contributed code before, but my knowledgable people are on leave.

@mergify

mergify Bot commented Aug 14, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@michaelklishin

Copy link
Copy Markdown
Contributor

@elo-magnier-7s I'd like to clarify that we are not adding anything back at the ra level, even if from the system monitoring perspective you might consider that metric "lost".

RabbitMQ 3.13-era quorum queues did not persist metrics_labels, so there is nothing to recover from disk on restarts.

This approach seems to be the most viable from a few points of view:

  1. We are updating the current code only
  2. The change is very localized
  3. The data structure we want to store into the metrics state is a map with two scalar values (so there's no nesting complexity, for example)

The only alternative is indeed forcing the Ra members to be re-created, which can mean a non-trivial amount of effort for every operator migrating from 3.13 to 4.2 and onwards.

@elo-magnier-7s

Copy link
Copy Markdown
Contributor Author

Replied in the other one, I think your objection on the wording is making sense - if that's what you're meaning. And I've proposed a slightly different wording there.

I have some eval (and evil) code that does it in ETS live & rewrites the config file (I've put both the bug report), so it can technically be fixed without doing the whole re-creation of members, but I barely trust it!

….13 migrated queues config, in line with 4.2 queues
@elo-magnier-7s
elo-magnier-7s force-pushed the feat/elo/bug/bring_raft_back branch from 884b652 to 796179f Compare August 17, 2026 23:39
@elo-magnier-7s elo-magnier-7s changed the title Add metrics_labels to MUTABLE_CONFIG_KEYS to introduce it back to 3.13 migrated queues Add metrics_labels to MUTABLE_CONFIG_KEYS to introduce the value in 3.13 migrated queues config, in line with 4.2 queues Aug 17, 2026
@kjnilsson
kjnilsson merged commit e5b0902 into rabbitmq:main Aug 18, 2026
8 checks passed
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.

3 participants