added shard store size as well as "primary" label to shard metrics #292
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.
refs #156
I added
shards_store_size_in_bytes
as one of the shard-level metrics exposed through the exporter.I also added a
primaries
label to the shard-level metrics in order to differentiate between primaries and replicas.As for counting replica shards, there isn't a specific metric for tracking that, but a quick 'n dirty way of getting that would be to count the number of of occurrences of a specific metric for a specific shard with something like: