Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

574
Views
How to create alert for logged errors?

I have a stream of log messages in Loki, and I want to create an alert if error is logged.

Here is the query I wrote for the alert

sum by (app) (count_over_time({app="my-app"} | json | Level="Error" or Level="Critical" or Level="Fatal"[5m])) > 0

However, when I try to preview, I get the error:

invalid format of evaluation results for the alert definition Failures: looks like time series data, only reduced data can be alerted on.

What should I do to make grafna happy?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You have to reduce the query first and set the right alert condition. Documentation: https://grafana.com/docs/grafana/latest/alerting/unified-alerting/alerting-rules/create-grafana-managed-rule/):

enter image description here

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!