Skip to content

Elasticsearch shards per node metric missing #484

@manuelbs88

Description

@manuelbs88

Hello team,

First of all, very sorry in case this already exist and I'm not been successful in my findings...

I would like to monitor the ratio between the nº of nodes, the heap memory available and the nº of shards assigned per node.

Why?

To avoid oversharding situations, the recommendation is to be HEAP_MEM x 20 => Total shards per node to be in a 'balanced' state. In other way, oversharding states provokes bad performance within the cluster.

So that, I have not been able to find any metric to retrieve the number of shards per node.

We have shards metrics at cluster level:
elasticsearch_cluster_health_active_primary_shards
elasticsearch_cluster_health_active_shards
elasticsearch_cluster_health_delayed_unassigned_shards
elasticsearch_cluster_health_initializing_shards
...
But they all have 'cluster' dimension.

Is there any way to retrieve from the exporter the number of shards per node?
The only metric related to shards and nodes, is the "elasticsearch_indices_shards_docs" that is not what I need at all, since this is the number of documents per shard, per index and per node.

Is there any metric we can use for this?
In case it is not, which should be the process to request it as a new feature?

Thanks in advance guys.
Regards,
M

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions