Skip to content

Conversation

macgyver603
Copy link

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:

count(elasticsearch_indices_shards_docs_deleted{index="my-index", shard="0"})

@zwopir
Copy link
Member

zwopir commented Oct 4, 2019

thanks for your PR, looks good. Merged

@zwopir zwopir merged commit e8588be into prometheus-community:master Oct 4, 2019
@macgyver603 macgyver603 deleted the add-shard-store-size branch October 7, 2019 17:00
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.

2 participants