Dynamic Labels For Alerting

Hi!

Yes this is supported :slight_smile: There is no variable called $column, but can use $labels in custom annotations to reference some or all of the labels returned by the datasource query. You can find the docs on this here.

If you are using PostgreSQL you can do something like this:

SELECT 1, id::text, domain, chassis, model, oper_state_code FROM servers WHERE oper_state_code = 'degraded';

Screenshot 2023-04-21 at 11.43.31

This is how it looks:

1 Like