-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ceph: represent pgmap states using tags #2229
Ceph: represent pgmap states using tags #2229
Conversation
please update the changelog and put a release note in the 1.3 section |
CHANGELOG updated. PR has been rebased to current master. |
* ceph: maps are already refs, no need to use a pointer * ceph: pgmap_states are represented in a single metric "count", differenciated by tag * Update CHANGELOG
Beware that the "state" of a PG is essentially a bitmap of flags. Storing it as a primitive string e.g. "active+clean+scrubbing+deep" is going to increase series cardinality and not be particularly useful to query by. |
@dswarbrick Maybe splitting states using the '+' separator would be a better option then? That would narrow the cardinality of states. The only strange result would be that the sum of all the pg_states metrics would be greater or equal than the total number PG in the cluster (because a PG can have multiple states at once, eg. active & clean). |
* ceph: maps are already refs, no need to use a pointer * ceph: pgmap_states are represented in a single metric "count", differenciated by tag * Update CHANGELOG
Required for all PRs:
Description
This PR changes the layout of fields used for the
ceph_pgmap_state
metric according to what was proposed in issue #2224Test for the corresponding code has been added and the code for
decodeStatusPgmapState()
simplified.