Alerting: Pass Query Results to Notification

Hi,

I was referring to this answer here. You said, we need to make the env , host , tag and sql columns labels.
Could you please elaborate on this part? Specifically, how will the labels get the values from the query results?

If you’re querying a SQL database then my understanding is that labels are the columns in the GROUP BY.

hmmm maybe I am missing something. Not working for me right now.
I will try out a few things and get back to you.

Thank you

Edit:
@georgerobinson Could you please share any documentation that says if we are querying SQL Database then labels are the columns in the group by? It will help me run it by my dba team and get some help.

Thank you

Is this a workaround for this?

Hi @rlevytskyi , have you resolved it yet? I am having the same problem right now.