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 createNamespace: true
- <<: *loki - <<: *loki
installed: false installed: true
namespace: monitoring-system namespace: monitoring-system
createNamespace: false createNamespace: false
- <<: *promtail - <<: *promtail
installed: false installed: true
namespace: monitoring-system namespace: monitoring-system
createNamespace: false createNamespace: false
@ -83,7 +83,7 @@ releases:
createNamespace: true createNamespace: true
- <<: *mysql - <<: *mysql
installed: true installed: false
namespace: database-service namespace: database-service
createNamespace: true createNamespace: true

View File

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

View File

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