Unable to get intValue in Grafana alert template when using tmAlarmStatusField for alert judgment (mismatched length with math expression)

  • Grafana version 11.1.0

  • I want to trigger alerts using tmAlarmStatusField (to judge whether an alert is needed), and at the same time display the intValue (as the current value) in the alert notification template.

  • When using math expressions to combine tmAlarmStatusField and intValue, the operation fails because the data lengths of these two fields do not match.

  • How can I use the value of this intValue in the alert template?

  • Querying both tmAlarmStatusField and intValue simultaneously is also not feasible, as these two fields share numerous identical sequences. This causes Grafana to report the error:
    cannot uniquely be identified by its label set: the alert definition is
    invalid format of evaluation results: the alert definition frame
    with labels:

  • Thank you all. This is my first time using this platform, and I’m not very familiar with Grafana yet. Please forgive me if I make any beginner mistakes.

hi @bd2855342244

can’t advise on building the queries but , regarding templates, have you tried accessing the value like with

{{ $values.C.Value }} C or whatever the query identifier applies?