Grafana unexpected output for Yarn Application Chart

As found whenever there is a restart of the Resource Manager. The Apps submitted and Apps completed charts goes into negative value and result in inappropriate information. As the snippet is attached below.

Please let us know if any possible solution can be applied to fix or any thing else.


What data source are you using?