# Elastic cluster metrics

**URL:** https://discuss.elastic.co/t/elastic-cluster-metrics/241259
**Category:** Elasticsearch
**Tags:** elastic-stack-monitoring
**Created:** [July 15, 2020, 9:49am UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259 "2020-07-15T09:49:29Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![ash2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ash2/32/45433_2.png) [@ash2](https://discuss.elastic.co/u/ash2)
#### Post date: [July 15, 2020, 9:49am UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259/1 "2020-07-15T09:49:29Z")

</div>

I want to create the dashboards in my application showing the elastic cluster data and metrics as it is shown in Kibana app monitoring. For getting most of the data I can use cluster health apis. But I not getting much on how to get data over some time period. Like if I want to show search rate or indexing rate for last 7 days, how to get all this data?

Thanks in advance.

---

<div class="post-metadata">

### Author: ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)
#### Post date: [July 15, 2020, 10:27am UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259/2 "2020-07-15T10:27:30Z")

</div>

I think you can use Metricbeat to bring your cluster metrics into a dashbaord  
Check it [here](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-elasticsearch.html)

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 16, 2020, 4:32am UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259/3 "2020-07-16T04:32:11Z")

</div>

> [@ash2](#):
>
> Like if I want to show search rate or indexing rate for last 7 days, how to get all this data

What sort of app are you wanting to measure this from?

---

<div class="post-metadata">

### Author: ![ash2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ash2/32/45433_2.png) [@ash2](https://discuss.elastic.co/u/ash2)
#### Post date: [July 16, 2020, 4:52am UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259/4 "2020-07-16T04:52:14Z")

</div>

I have java spring back-end, where i want to get the data and process it.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 16, 2020, 4:53am UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259/5 "2020-07-16T04:53:06Z")

</div>

And you want the query rates that it makes against Elasticsearch? Or something else.

---

<div class="post-metadata">

### Author: ![ash2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ash2/32/45433_2.png) [@ash2](https://discuss.elastic.co/u/ash2)
#### Post date: [July 20, 2020, 9:54am UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259/6 "2020-07-20T09:54:57Z")

</div>

Hi Warkolm, I have a elasticsearch setup in which i am storing the various logs by creating various indices. Now i want to create dashboards which shows the various details like docs count, docs size, indexing rate, searching rate for a particular index. So for getting this data we have apis like `GET /<indexname>/_stats` but the problem is it gives only current data. I want to show these data for any time period.

---

<div class="post-metadata">

### Author: ![ash2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ash2/32/45433_2.png) [@ash2](https://discuss.elastic.co/u/ash2)
#### Post date: [July 20, 2020, 10:00am UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259/7 "2020-07-20T10:00:16Z")

</div>

Hi ylasri, yeah metricbeat can help with this, but i am not getting all data from metricbeat like in `GET /<indexname>/_stats` we get the data like `indexing.index_total, indexing.index_time_in_millis`, etc. So in metricbeat i am not getting such kind of data.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 20, 2020, 11:07pm UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259/8 "2020-07-20T23:07:44Z")

</div>

Why not just use the Monitoring functionality we provide?

---

<div class="post-metadata">

### Author: ![ash2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ash2/32/45433_2.png) [@ash2](https://discuss.elastic.co/u/ash2)
#### Post date: [July 21, 2020, 3:59am UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259/9 "2020-07-21T03:59:50Z")

</div>

I want to provide such functionality in my application. I am building logging system for some users so decided to have this monitoring functionality as well on my app also.

---

<div class="post-metadata">

### Author: ![Steve\_Mushero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_mushero/32/22441_2.png) [@Steve\_Mushero](https://discuss.elastic.co/u/Steve_Mushero)
#### Post date: [July 21, 2020, 5:58am UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259/10 "2020-07-21T05:58:34Z")

</div>

If the x-pack monitoring gets the data, you can get it from the .monitoring\* indexes but they are huge in terms of the number of fields (and nesting), though mostly self-documenting.

We are digging into these also for our product - basically you pick the metrics you want and pull them for the time period you want, but watch the scope as some are cluster level, some node level, etc. as I recall (I've not dug too deep yet; maybe will blog on it soon).

---

<div class="post-metadata">

### Author: ![ash2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ash2/32/45433_2.png) [@ash2](https://discuss.elastic.co/u/ash2)
#### Post date: [August 5, 2020, 4:43am UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259/11 "2020-08-05T04:43:00Z")

</div>

Thanks for your help, .monitoring-es-\* indices contains all the info I needed.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 2, 2020, 4:43am UTC](https://discuss.elastic.co/t/elastic-cluster-metrics/241259/12 "2020-09-02T04:43:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
