How to get Elasticsearch index document count via HTTP request?

There's Elasticsearch Exporter and /metrics endpoint it returns es_index_document_count fields.
Is there an Elasticsearch API endpoint ables to return such data straight - without using exporters?

Hi @philyeanaeknss Welcome to the community.

perhaps try

GET my-index/_count

2 Likes

Thank you! That's what I've searched for.