Skip to content

Commit

Permalink
Merge pull request #147 from canonical/IAM-663-improve-logql-query
Browse files Browse the repository at this point in the history
fix(loki-rule): improve error handling in json parsing
  • Loading branch information
BarcoMasile authored Jan 31, 2024
2 parents 603b815 + 648d656 commit fc41e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loki_alert_rules/hydra_high_severity_log.rule
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ groups:
- name: HydraHighSeverityLog
rules:
- alert: HighFrequencyHighSeverityLog
expr: sum by(level) (count_over_time({%%juju_topology%%} | json | level =~ `error|fatal|critical` [5m])) > 100
expr: sum by(level) (count_over_time({%%juju_topology%%} | json | __error__ != "JSONParserErr" | level =~ `error|fatal|critical` [5m])) > 100
labels:
severity: error
annotations:
Expand Down

0 comments on commit fc41e1c

Please # to comment.