apinf / platform

Apinf - Open source API management platform with multi proxy and protocol support
https://apinf.com/
European Union Public License 1.1
74 stars 33 forks source link

Dashboard: Dates on X-axis not evenly distributed #3653

Open matleppa opened 5 years ago

matleppa commented 5 years ago

Background

In Dashboard there is possible to have a line chart displaying details from history, Last 7 days and Last 28 days. Charts should show day by day the actual values, it they exist or show 0 when there are no data.

Problem

In some situation all the days in selected period are not shown.

matleppa commented 5 years ago

Last 7 days

Within 7 day period there is data only in yesterday. The previous days are missing.

dash_7_missing_days.PNG

Last 28 days

There are data only on 3.12. and 10.12. Here previous days are included as zeroes, but the dates between 3.12. and 10.12. are missing.

dash_28_missing_days.PNG

matleppa commented 5 years ago

However, this is a matter of aggregating historical data from local MongoDB, so problem becomes obsolete, when Dashboard historical data is fetched from ES.