feat: Setup a logging system
Loki + Promtail
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								badhouseplants/values/values.loki.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								badhouseplants/values/values.loki.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
---
 | 
			
		||||
singleBinary:
 | 
			
		||||
  replicas: 1
 | 
			
		||||
loki:
 | 
			
		||||
  auth_enabled: false
 | 
			
		||||
  commonConfig:
 | 
			
		||||
    replication_factor: 1
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								badhouseplants/values/values.promtail.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								badhouseplants/values/values.promtail.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
---
 | 
			
		||||
config:
 | 
			
		||||
  clients:
 | 
			
		||||
    #    - url: http://loki.monitoring-system:3100
 | 
			
		||||
    - url: http://loki-gateway/loki/api/v1/push
 | 
			
		||||
@@ -110,16 +110,37 @@ templates:
 | 
			
		||||
      - template: default-env-values
 | 
			
		||||
      - template: default-env-secrets
 | 
			
		||||
      - template: ext-istio-resource
 | 
			
		||||
  
 | 
			
		||||
  monitoring-common:
 | 
			
		||||
    labels: 
 | 
			
		||||
      bundle: monitoring
 | 
			
		||||
 | 
			
		||||
  prometheus: &prometheus
 | 
			
		||||
    name: prometheus
 | 
			
		||||
    chart: prometheus-community/kube-prometheus-stack
 | 
			
		||||
    version: 47.1.0
 | 
			
		||||
    inherit:
 | 
			
		||||
      - template: monitoring-common
 | 
			
		||||
      - template: default-env-values
 | 
			
		||||
      - template: default-env-secrets
 | 
			
		||||
      - template: crd-management-hook
 | 
			
		||||
      - template: ext-istio-resource
 | 
			
		||||
 
 | 
			
		||||
  loki: &loki
 | 
			
		||||
    name: loki
 | 
			
		||||
    chart: grafana/loki
 | 
			
		||||
    version: 5.6.4
 | 
			
		||||
    inherit:
 | 
			
		||||
      - template: monitoring-common
 | 
			
		||||
      - template: default-env-values
 | 
			
		||||
 | 
			
		||||
  promtail: &promtail
 | 
			
		||||
    name: promtail
 | 
			
		||||
    chart: grafana/promtail
 | 
			
		||||
    version: 6.11.3
 | 
			
		||||
    inherit:
 | 
			
		||||
      - template: monitoring-common
 | 
			
		||||
      - template: default-env-values
 | 
			
		||||
  # ----------------------------
 | 
			
		||||
  # -- Istio
 | 
			
		||||
  # ----------------------------
 | 
			
		||||
 
 | 
			
		||||
@@ -26,9 +26,9 @@ repositories:
 | 
			
		||||
    url: https://argoproj.github.io/argo-helm
 | 
			
		||||
  - name: bedag
 | 
			
		||||
    url: https://bedag.github.io/helm-charts/
 | 
			
		||||
  # - name: mailu
 | 
			
		||||
    # url: https://mailu.github.io/helm-charts/
 | 
			
		||||
  - name: metallb
 | 
			
		||||
    url: https://metallb.github.io/metallb
 | 
			
		||||
  - name: prometheus-community
 | 
			
		||||
    url: https://prometheus-community.github.io/helm-charts
 | 
			
		||||
  - name: grafana
 | 
			
		||||
    url: https://grafana.github.io/helm-charts
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user