Setup promtail and loki

This commit is contained in:
Nikolai Rodionov 2023-11-18 13:12:26 +01:00
parent fd7813a840
commit 4b364c9c18
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10
3 changed files with 21 additions and 4 deletions

View File

@ -48,12 +48,12 @@ releases:
createNamespace: true
- <<: *loki
installed: false
installed: true
namespace: monitoring-system
createNamespace: false
- <<: *promtail
installed: false
installed: true
namespace: monitoring-system
createNamespace: false
@ -83,7 +83,7 @@ releases:
createNamespace: true
- <<: *mysql
installed: true
installed: false
namespace: database-service
createNamespace: true

View File

@ -1,11 +1,22 @@
---
singleBinary:
replicas: 1
persistence:
size: 5Gi
loki:
auth_enabled: false
commonConfig:
replication_factor: 1
storage:
type: 'filesystem'
monitoring:
selfMonitoring:
enabled: false
lokiCanary:
enabled: false
test:
enabled: false
compactor:
retention_enabled: true
limits_config:
retention_period: 2d
retention_period: 14d

View File

@ -3,3 +3,9 @@ config:
clients:
# - url: http://loki.monitoring-system:3100
- url: http://loki-gateway/loki/api/v1/push
snippets:
pipelineStages:
- match:
pipeline_name: "drop-all"
selector: '{namespace!="mail-service"}'
action: drop