Skip to content
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

Merged
merged 4 commits into from
Feb 1, 2017
Merged

Ceph: represent pgmap states using tags #2229

merged 4 commits into from
Feb 1, 2017

Conversation

j-vizcaino
Copy link
Contributor

@j-vizcaino j-vizcaino commented Jan 5, 2017

Required for all PRs:

  • CHANGELOG.md updated (we recommend not updating this until the PR has been approved by a maintainer)
  • Sign CLA (if not already signed)

Description

This PR changes the layout of fields used for the ceph_pgmap_state metric according to what was proposed in issue #2224
Test for the corresponding code has been added and the code for decodeStatusPgmapState() simplified.

@j-vizcaino j-vizcaino changed the title 2224/ceph pgmap states tag Ceph: represent pgmap states using tags Jan 9, 2017
@sparrc sparrc added this to the 1.3.0 milestone Jan 9, 2017
@sparrc
Copy link
Contributor

sparrc commented Jan 13, 2017

please update the changelog and put a release note in the 1.3 section

@j-vizcaino
Copy link
Contributor Author

CHANGELOG updated. PR has been rebased to current master.

@sparrc sparrc merged commit c0bbde0 into influxdata:master Feb 1, 2017
mlindes pushed a commit to Comcast/telegraf that referenced this pull request Feb 6, 2017
* 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
@dswarbrick
Copy link

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.

@j-vizcaino
Copy link
Contributor Author

j-vizcaino commented Feb 27, 2017

@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).

maxunt pushed a commit that referenced this pull request Jun 26, 2018
* 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
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