elasticbeat icon indicating copy to clipboard operation
elasticbeat copied to clipboard

Collecting metrics of a specify index

Open berrytchaks opened this issue 8 years ago • 4 comments

Hi there,

First I want to thank you for this wonderful work of art. I started playing with this beat. I could collect all the metrics of elasticsearch regarding the cluster, nodes and health. Now I wanted some specify metrics that is metrics of a specify topic.

I was wondering if there is a mean to get those metrics with this beat.

Thanks.

berrytchaks avatar Nov 25 '16 19:11 berrytchaks

@berrytchaks thanks for asking. However, could you add an example of what would you like to get? Do you have a specific request (api call) you are interested in?

radoondas avatar Nov 28 '16 09:11 radoondas

@radoondas Thanks for the reply,

Basically I'm interested in the following scenarios. I create two indexes named index1 and index2 on elasticsearch. I launch elasticbeat with configurations of sending metrics to logstash then elasticsearch and finally displaying them on kibana. I go to kibana and I can see metrics of the index1 in the index index1 and those of index2 in the index2.

I think that this is possible by configuring logstash. So, I want to know if there is any field in the metrics which contents the index name from which the metrics are coming from.

Say something like

cluster_node.indexname : index1

Thanks.

berrytchaks avatar Nov 28 '16 11:11 berrytchaks

For index statistics [indices stats] API (https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html) would need to be implemented.

Implementation depends on my time left :) No promises.

radoondas avatar Nov 28 '16 11:11 radoondas

Okay thanks alot.

berrytchaks avatar Nov 28 '16 11:11 berrytchaks