Grafana Annotations for LOKI

  • What Grafana version and what operating system are you using? 12.2

  • What are you trying to achieve? I wanted to set up annotation on Job Failures

  • How are you trying to achieve it? : I am writing the query in LOKI to set it up

  • What happened? : Need some guidence on if my approach is correct or need some improvements

  • What did you expect to happen? I wanted to annotates when the job failure is happening

  • Can you copy/paste the configuration(s) that you are having problems with? {service_name=“XXXXX”, host=~“XXXXX|YYYYY”, status=“ABEND”}
    |= AAAAA
    |= The following job stream has stopped with one or more failed

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were. : No errors

  • Did you follow any online instructions? If so, what is the URL? : I followed the documentation and Video in the docs Annotate visualizations | Grafana documentation

Can some one please guide if I am on right track for this