ASH-Viewer icon indicating copy to clipboard operation
ASH-Viewer copied to clipboard

History Top Activity chart is misleading - spikey instead of solid!

Open fmgently opened this issue 5 years ago • 10 comments

I ran pgbench against a postgres database for 10 minutes. If I then later go back and view the history data, the "Top Activity" shown below does not present a solid chart, instead it shows a series of spikes. I then selected the area between 2 spikes and the "Top sql & sessions" display does contain data.

So I claim the data is properly retained, but not displayed correctly in the Top Activity chart. I will attach an image of a screen shot to illustrate the issue.

fmgently avatar Feb 11 '20 21:02 fmgently

ashtopactivity

fmgently avatar Feb 11 '20 21:02 fmgently

If you select a longer period in the history then the Top activity is less spikey, but still misleading.

fmgently avatar Feb 11 '20 21:02 fmgently

longerTopActivity

fmgently avatar Feb 11 '20 21:02 fmgently

Hi!

I ran pgbench against a postgres database for 10 minutes.

So, you have spikes (duration of 10 minutes) between launches. It's working well, as expected.

Thanks, Alex.

akardapolov avatar Feb 12 '20 04:02 akardapolov

Agreed that it seems to be recording data properly. But I am having a very hard time convincing clients and co-workers that the data is correct. The visual graphs are misleading.

The expectation is that the visual graphs will remain consistent as you drill in or change the time span.

The lack of consistent visual representation of the same data leads the casual viewer to believe the data is also inconsistent.

The expectation is that a 10 minute solid chart in an hour view should also be shown as a solid 10 minute chart in a 10 minute view.

fmgently avatar Feb 12 '20 05:02 fmgently

When my clients viewed the first image I attached their immediate response was to ask why the system was peaking and then going to zero.

It was not. But the chart indicates it was.

fmgently avatar Feb 12 '20 05:02 fmgently

I understand that actual data is grabbed only once a second (and then averaged over a period?) but the expectation is that graphs / charts will blur the actual sampling interval and portray a continual trend.

fmgently avatar Feb 12 '20 05:02 fmgently

Hi!

The expectation is that a 10 minute solid chart in an hour view should also be shown as a solid 10 minute chart in a 10 minute view.

Because the data in History module appeared using 15 seconds aggregation interval. So this is why you see spikes every 15 seconds in 10 minute view.

akardapolov avatar Feb 12 '20 16:02 akardapolov

(and then averaged over a period?) 1 second, 15 seconds and 1 minute

expectation is that graphs / charts will blur the actual sampling interval and portray a continual trend

It depends on data

akardapolov avatar Feb 12 '20 16:02 akardapolov

https://github.com/akardapolov/ASH-Viewer/issues/31#issuecomment-584864800

In this case (you right) we need to interpolate data

Thanks, Alex.

akardapolov avatar Feb 13 '20 17:02 akardapolov