Skip to content

Commit 32bd640

Browse files
fix: added loki rule for api error logs
1 parent 22f2b5d commit 32bd640

File tree

1 file changed

+10
-0
lines changed
  • argo/cluster/monitoring/loki/chart/templates

1 file changed

+10
-0
lines changed

argo/cluster/monitoring/loki/chart/templates/rules.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ metadata:
55
labels:
66
loki_rule: ""
77
data:
8+
srep-api.yaml: |
9+
groups:
10+
- name: api
11+
interval: 30s
12+
rules:
13+
- record: srep_api_error_log_count
14+
expr: |
15+
sum (
16+
count_over_time({job="srep/srep-api-chart"} != `latency_human` | json | level = `error` | __error__=`` [30s])
17+
) by (type, msg, caller)
818
srep-ui.yaml: |
919
groups:
1020
- name: ui

0 commit comments

Comments
 (0)