How to add trend line to time series graph from psql?

You may try Grafana’s Regression analysis transformation:

To be able to use it you need to enable regressionTransformation feature toggle:

[feature_toggles]
enable = regressionTransformation
3 Likes