59 行
1.2 KiB
YAML
59 行
1.2 KiB
YAML
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: loki
|
|
namespace: infra-monitor
|
|
spec:
|
|
interval: 30m
|
|
timeout: 15m
|
|
chart:
|
|
spec:
|
|
chart: loki
|
|
version: 6.53.0
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: grafana
|
|
namespace: infra-gitops
|
|
interval: 12h
|
|
values:
|
|
deploymentMode: SingleBinary
|
|
gateway:
|
|
enabled: false
|
|
lokiCanary:
|
|
extraArgs:
|
|
# 降低测试日志生成条数
|
|
- -interval=30s
|
|
- -labelname=service_name
|
|
- -labelvalue=loki-canary
|
|
resultsCache:
|
|
allocatedMemory: 1024
|
|
chunksCache:
|
|
allocatedMemory: 1024
|
|
loki:
|
|
auth_enabled: false
|
|
commonConfig:
|
|
replication_factor: 1
|
|
limits_config:
|
|
reject_old_samples_max_age: 168h
|
|
max_query_series: 10000
|
|
volume_enabled: true
|
|
storage:
|
|
type: "filesystem"
|
|
schemaConfig:
|
|
configs:
|
|
- from: "2024-01-01"
|
|
store: tsdb
|
|
index:
|
|
prefix: loki_index_
|
|
period: 24h
|
|
object_store: filesystem
|
|
schema: v13
|
|
singleBinary:
|
|
replicas: 1
|
|
read:
|
|
replicas: 0
|
|
backend:
|
|
replicas: 0
|
|
write:
|
|
replicas: 0
|