# Metrics dashboards not working as it should

**URL:** <https://discuss.elastic.co/t/metrics-dashboards-not-working-as-it-should/271555>\
**Category:** Kibana\
**Created:** [April 28, 2021, 9:01pm UTC](https://discuss.elastic.co/t/metrics-dashboards-not-working-as-it-should/271555 "2021-04-28T21:01:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francisco\_Gomez1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francisco_gomez1/32/78301_2.png) [@Francisco\_Gomez1](https://discuss.elastic.co/u/Francisco_Gomez1)\
**Post date:** [April 28, 2021, 9:01pm UTC](https://discuss.elastic.co/t/metrics-dashboards-not-working-as-it-should/271555/1 "2021-04-28T21:01:02Z")

</div>

Hi there.  
Im using elastic agent to load all my system metrics in the dashboards given by kibana, the problem is that when i use the default metrics recollection time (10 seconds) it works well, giving me a perfect view:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/a/baab39e2a00004f0de99acc6ffc6d29eefb92243.jpeg)

But when i change the recollection times for some metrics ( 1minute becouse 10 seconds is too low to be viable for a storage perspective)

i get this view :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/d/7d4f230b680425e56a52b87f403b78f0fcc0277c.png)

Any idea on how i can fix this?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 28, 2021, 10:21pm UTC](https://discuss.elastic.co/t/metrics-dashboards-not-working-as-it-should/271555/2 "2021-04-28T22:21:20Z")

</div>

Hi @Francisco_Gomez1

Set your collection interval to 60s and collect 10 min of data and then time picker to **Last 1hr** \<!-- Most important and let me know what you see. It should like below. Then I will explain what is happening and how to fix it.

 ![Screen Shot 2021-04-28 at 3.18.06 PM](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c19b7a0fd82dcafd5631be84656a623a6d727b88.png)

---

<div class="post-metadata">

**Author:** ![Francisco\_Gomez1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francisco_gomez1/32/78301_2.png) [@Francisco\_Gomez1](https://discuss.elastic.co/u/Francisco_Gomez1)\
**Post date:** [April 28, 2021, 11:25pm UTC](https://discuss.elastic.co/t/metrics-dashboards-not-working-as-it-should/271555/3 "2021-04-28T23:25:36Z")

</div>

Hi, it indeed helped

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a4ee4bbbb406eca333e84b11e1063b82652d80a1.png)

But check this out, the top process looks like this for some reason:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/d/5dafe03a422aba12d88f80596996c218b733c208.png)

Also (i got 3 servers) in one of the servers my disk information looks like this

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/d/1daac6bba3c7cc06e13596e92004ed8ac3d0c824.png)

When i try to modify the interval i see this

This is the edit mode, looks like it should be looking like this

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/5/05e2e6b4d2e2ff931cc2e9951c352198f84ba713.png)

Also it dosent let me modify the interval for the disk info

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/c/2c837120ae9af7bd3132c26bf95b47392bbc23b2.png)

Any ideas ?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 29, 2021, 3:10pm UTC](https://discuss.elastic.co/t/metrics-dashboards-not-working-as-it-should/271555/4 "2021-04-29T15:10:59Z")

</div>

Hi @Francisco_Gomez1

[Skipping long explanation of collection intervals and TSVB intervals etc]

In short for TSVB visualization to work (well/best) when the TSVB interval is \>= to the Metric Collection interval which you have set to 1m

**First / Overall Issue:**  
You have chosen 1m collection interval which is totally fine.

When you you set the timepicker to 15mins, TSVB auto interval is set to 10s, therefor there is no data in the 2nd to last bucket (because we drop the last) for the gauge to work. When we set it to 1 hour the auto interval pick 60s / 1m

The solution is to set the TSVB interval to \>=1m for the visualizations for a metrics collection rate of 1m. Today you will need to go in and fix them. If you do then they should work fine.

You should go in and fix that for all the visualizations, Including the Line / Graph and Top N.

With respect to the Top Processes (All Top N) set to interval to \>=1m pretty sure there may still be an issue with that. Report Back

 ![Screen Shot 2021-04-29 at 7.54.50 AM](https://us1.discourse-cdn.com/elastic/original/3X/7/b/7b752be4f343cd2f80ed77fe903ef0de34ec7493.png)

With respect to Disk Used. The Data Time Range more is set to Entire time range so that means that value represents the Average of the Entire time range of the Time Picker. 15min or 1 Hour etc. Because it is over the entire time range the interval is no longer relevant.

You can leave is this way if you want, Me I like to know the disk used recently so I set that back to Last value and set the interval to \>=1m

 ![Screen Shot 2021-04-29 at 8.09.56 AM](https://us1.discourse-cdn.com/elastic/original/3X/e/f/ef3e2647641211e8f2e8451cc339a5a05b12ec40.png)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![Francisco\_Gomez1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francisco_gomez1/32/78301_2.png) [@Francisco\_Gomez1](https://discuss.elastic.co/u/Francisco_Gomez1)\
**Post date:** [April 29, 2021, 7:48pm UTC](https://discuss.elastic.co/t/metrics-dashboards-not-working-as-it-should/271555/5 "2021-04-29T19:48:53Z")

</div>

Indeed disk is working well making those changes, about Top N i realized i set that one previusly on 5 minutes, so i change it back to 1 minute like the others to see if it is working and its looking like this

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/c/7c733d4bad7d5e5334e4f3bee4ee2ed2a3179fdb.png)

The timepicker is set in the last 5 minutes, and this is my panel configuration, even if change to 1 hour no differences

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/5/05b60ebdcacf549c9b5dd6c2610e65afc113eb7e.png)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 30, 2021, 1:58am UTC](https://discuss.elastic.co/t/metrics-dashboards-not-working-as-it-should/271555/6 "2021-04-30T01:58:34Z")

</div>

First when you try to squeeze down time when you have a low collection rate, the results are not going to be great... If you have 5 mins Timepicker and collect at 1 min and then throw out the last bucket you at max will have 4 data point (rare) at generally 3 ... Should still work but keep that in mind.

Yeah I think there is a bug with the Table I will look into it when I get a chance.... It works with entire time range but does not seems to be working with Last Value

---

<div class="post-metadata">

**Author:** ![Francisco\_Gomez1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francisco_gomez1/32/78301_2.png) [@Francisco\_Gomez1](https://discuss.elastic.co/u/Francisco_Gomez1)\
**Post date:** [April 30, 2021, 4:18am UTC](https://discuss.elastic.co/t/metrics-dashboards-not-working-as-it-should/271555/7 "2021-04-30T04:18:32Z")

</div>

> [@stephenb](#):
>
> t... If you have 5 mins Timepicker and collect at 1 min and then throw out the last bucket you at max will have 4 data point (rare) at generally 3 ... Shoul

Thanks in advance, i will be waiting for your response

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 30, 2021, 4:21am UTC](https://discuss.elastic.co/t/metrics-dashboards-not-working-as-it-should/271555/8 "2021-04-30T04:21:26Z")

</div>

No promises, as an open source company please feel free to replicate and write a bug [here](https://github.com/elastic/kibana/issues)

---

<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:** [May 28, 2021, 4:22am UTC](https://discuss.elastic.co/t/metrics-dashboards-not-working-as-it-should/271555/9 "2021-05-28T04:22:06Z")

</div>

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