Skip to content

Commit 11a9b90

Browse files
fix: added loki srep ui rule
1 parent 26168e0 commit 11a9b90

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: loki-rules
5+
data:
6+
srep-ui.yaml: |
7+
groups:
8+
- name: ui
9+
interval: 1m
10+
rules:
11+
- record: srep_ui_requests_total
12+
expr: |
13+
sum(
14+
rate({app="srep-ui-chart"} |= `` | pattern `<_> - - <_> "<method> <url> <_>" <status> <size> <_> "<agent>" "<ip>"` [1m])
15+
) by(job, status, url, method, container, pod, instance)

argo/cluster/monitoring/loki/chart/values.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,31 @@ loki:
77
type: 'filesystem'
88
limits_config:
99
retention_period: 168h
10+
rulerConfig:
11+
enable_alertmanager_v2: true
12+
alertmanager_url: http://kube-prometheus-stack-alertmanager.monitoring.svc:9093
13+
storage:
14+
type: local
15+
local:
16+
directory: /tmp/rules
17+
rule_path: /tmp/scratch
18+
1019
singleBinary:
1120
replicas: 1
1221
persistence:
1322
storageClass: longhorn
1423
size: 5Gi
24+
extraVolumes:
25+
- name: rules
26+
configMap:
27+
name: loki-rules
28+
- name: scratch
29+
emptyDir: {}
30+
extraVolumeMounts:
31+
- name: rules
32+
mountPath: /tmp/rules
33+
- name: scratch
34+
mountPath: /tmp/scratch
1535

1636
test:
1737
enabled: false

0 commit comments

Comments
 (0)