How do you create trend line in grafana charts

user1471980 picture user1471980 · Oct 17, 2014 · Viewed 11.8k times · Source

I am using grafana with opentsdb. I can create charts with avg, max, min etc but I dont see how a trend can be added. Is it possible to put trend line on charts in grafana?

Answer

Steve picture Steve · Oct 7, 2015

I found a way to do this. Use the movingAverage function, and set the window size to something really large, like in the thousands. The higher you set it, the smoother the trendline gets.