Hmm. I can't recreate that behavior here. I have seen some issues like this if you're grouping by a time interval different from the metrics reporting interval you're using, though. How often are you reporting metrics to Influx? Are you using the same interval in your Grafana queries? I see in your queries you are using a time interval of 10 seconds. Have you tried 1 second? Do you see the same behavior?
-Jamie On Tue, Nov 1, 2016 at 4:30 PM, Anchit Jatana <development.anc...@gmail.com> wrote: > Hi Jamie, > > Thank you so much for your response. > > The below query: > > SELECT derivative(sum("count"), 1s) FROM "numRecordsIn" WHERE "task_name" = > 'Sink: Unnamed' AND $timeFilter GROUP BY time(1s) > > behaves the same as with the use of the templating variable in the 'All' > case i.e. shows a plots of junk 'negative values' > > It shows accurate results/plot when an additional where clause for > "subtask_index" is applied to the query. > > But without the "subtask_index" where clause (which means for all the > subtask_indexes) it shows some junk/incorrect values on the graph (both > highly positive & highly negative values in orders of millions) > > Images: > > <http://apache-flink-user-mailing-list-archive.2336050. > n4.nabble.com/file/n9816/Incorrect_%28for_all_subtasks%29.png> > > <http://apache-flink-user-mailing-list-archive.2336050. > n4.nabble.com/file/n9816/Correct_for_specific_subtask.png> > > Regards, > Anchit > > > > -- > View this message in context: http://apache-flink-user- > mailing-list-archive.2336050.n4.nabble.com/Flink-Metrics- > InfluxDB-Grafana-Help-with-query-influxDB-query-for- > Grafana-to-plot-numRecordsIn-numRen-tp9775p9816.html > Sent from the Apache Flink User Mailing List archive. mailing list archive > at Nabble.com. > -- Jamie Grier data Artisans, Director of Applications Engineering @jamiegrier <https://twitter.com/jamiegrier> ja...@data-artisans.com