Repository navigation
fix: report effective bucket quotas in metrics - #132
Merged
Merged
Conversation
Signed-off-by: mr javad seydi <[email protected]>
This was referenced Sep 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution Licensing (no CLA, inbound=outbound, DCO required)
This project does not use a CLA; contributions are accepted inbound=outbound.
By submitting this pull request I represent that I have the right to contribute
the changes, which are licensed under this repository's
GNU Affero General Public License v3.0 or later
and remain my copyright. Every commit carries a DCO
Signed-off-bytrailercertifying the
Developer Certificate of Origin.
Description
Report bucket quota metrics from the quota value the server actually enforces.
The shared quota-size selector prefers
BucketQuota.Sizeand retainsBucketQuota.Quotaas a fallback for legacy configurations.Site-replication status now compares effective hard-quota values while still
detecting raw size drift in unsupported or typeless configurations.
Motivation and Context
The v2 and v3 bucket usage collectors still read the deprecated
Quotafield.Quotas stored in the current
Sizefield therefore produced a missing or zeroquota metric even though the server enforced them.
Fixes #106.
How to test this PR?
Compatibility impact
There are no API, metric-name, label, route, storage-format, or configuration
schema changes. Current
Sizequotas are now reported correctly, legacyQuotavalues remain supported, and non-hard quotas are not advertised asenforced. Site-replication status now detects differing
Sizevalues whiletreating equivalent current and legacy hard-quota representations as equal.
Rollback requires no data migration; it only restores the previous incorrect
metric and replication-status behavior. No compatibility identifiers change.
Types of changes
Checklist:
git commit -s) per the DCO5b114b43f7a657c6ab964cadd318505cba7f25c1migrated quota enforcement toSizewithout updating metrics)make verifierspassesmake buildpasspgsty/silo.pgsty.com, if needed (not needed; the metric contract is unchanged)