feat: Setup a logging system

Loki + Promtail
This commit is contained in:
Nikolai Rodionov
2023-06-17 10:49:16 +02:00
parent 9a05d93451
commit cd506cd969
6 changed files with 57 additions and 3 deletions

View File

@ -50,6 +50,16 @@ releases:
- <<: *prometheus
installed: false
namespace: monitoring-system
createNamespace: true
- <<: *loki
installed: true
namespace: monitoring-system
createNamespace: false
- <<: *promtail
installed: true
namespace: monitoring-system
createNamespace: false
bases:

View File

@ -0,0 +1,7 @@
---
singleBinary:
replicas: 1
loki:
auth_enabled: false
commonConfig:
replication_factor: 1

View File

@ -78,4 +78,15 @@ grafana:
gnetId: 14584
revision: 1
datasource: Prometheus
datasources:
loki.yaml:
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
uid: loki
editable: false
url: http://loki.monitoring-system:3100/
jsonData:
maxLines: 1000

View File

@ -0,0 +1,5 @@
---
config:
clients:
# - url: http://loki.monitoring-system:3100
- url: http://loki-gateway/loki/api/v1/push