Skip to content
Advertisement

Grafana change SQL query for a totalization of each data point

I have a grafana dashboard that charts a bunch of data on 2 query’s, this is one below:

And this is the other query:

Would anyone know how I could modify this into one SQL expression for a totalization? Instead of 50 different lines on my chart, just one line of all variables added together. The data is air flow readings and I am trying to figure out how to just plot a totalized air flow reading of all data, hopefully that makes sense for anything */Discharge Air Flow and .*/SA-F

Advertisement

Answer

I’m guessing your database isn’t MSSQL as I don’t recognise ~ as a valid comparison operator so my answer is a bit of a guess based on what would work for MSSQL. I think this should give you the results you are looking for:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement