Skip to content

Commit 663f7c2

Browse files
committed
Decrease frequency of writes for monitoring/analytics
1 parent 4721702 commit 663f7c2

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

argocd/apps/logging/grafana-loki-app.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ spec:
1818
local:
1919
chunks_directory: /var/loki/chunks
2020
rules_directory: /var/loki/rules
21+
limits_config:
22+
ingestion_rate_mb: 10
23+
ingestion_burst_size_mb: 20
24+
chunk_store_config:
25+
max_chunk_age: 2h
26+
ingester:
27+
chunk_idle_period: 30m
28+
chunk_block_size: 262144
29+
chunk_target_size: 1572864
30+
max_chunk_age: 2h
31+
flush_check_period: 30s
2132
persistence:
2233
enabled: true
2334
storageClassName: longhorn

argocd/apps/logging/grafana-promtail-app.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ spec:
1414
daemonset:
1515
tolerations:
1616
- operator: Exists
17+
config:
18+
clients:
19+
- url: http://loki-gateway/loki/api/v1/push
20+
batchwait: 5s
21+
batchsize: 1048576
22+
timeout: 30s
1723
destination:
1824
server: https://kubernetes.default.svc
1925
namespace: logging

helm/prometheus/templates/prometheus.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ spec:
1212
replicas: {{ .Values.replicas | default 1 }}
1313
retention: {{ .Values.retention | default "7d" }}
1414
retentionSize: {{ .Values.retentionSize | default "60GB" }}
15+
walCompression: {{ .Values.walCompression | default true }}
16+
scrapeInterval: {{ .Values.scrapeInterval | default "60s" }}
17+
evaluationInterval: {{ .Values.evaluationInterval | default "60s" }}
1518
resources:
1619
requests:
1720
memory: {{ .Values.resources.requests.memory | default "400Mi" }}

helm/prometheus/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ replicas: 1
33
retention: "7d"
44
retentionSize: "60GB"
55

6+
# Write optimization settings
7+
walCompression: true
8+
scrapeInterval: "60s"
9+
evaluationInterval: "60s"
10+
611
resources:
712
requests:
813
memory: "400Mi"

0 commit comments

Comments
 (0)