Skip to content

Commit

Permalink
feat(logs): Add log level configuration (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdenquin authored Jan 22, 2024
1 parent ec3ece7 commit f7eaaad
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: "0.54.1-beta"
appVersion: "0.54.2-beta"
description: the Lago open source billing app
name: lago
version: 0.3.4
version: 0.3.5
dependencies:
- name: postgresql
version: "13.2.2"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Lago Helm Chart

Version: 0.3.4
Lago Version : v0.54.1-beta
Version: 0.3.5
Lago Version : v0.54.2-beta

## Configuration

Expand Down
2 changes: 2 additions & 0 deletions templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ spec:
value: "true"
- name: WEB_CONCURRENCY
value: {{ .Values.api.rails.webConcurrency | quote }}
- name: LAGO_LOG_LEVEL
value: {{ .Values.api.rails.logLevel | quote }}
{{ if .Values.global.license }}
- name: LAGO_LICENSE
valueFrom:
Expand Down
2 changes: 2 additions & 0 deletions templates/clock-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ spec:
secretKeyRef:
name: {{ .Release.Name }}-secrets
key: encryptionPrimaryKey
- name: LAGO_LOG_LEVEL
value: {{ .Values.clock.rails.logLevel | quote }}
{{ if .Values.global.newRelic.enabled }}
- name: NEW_RELIC_KEY
valueFrom:
Expand Down
2 changes: 2 additions & 0 deletions templates/events-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ spec:
value: {{ .Values.worker.rails.sidekiqConcurrency | quote }}
- name: SIDEKIQ_CONCURRENCY
value: {{ .Values.worker.rails.sidekiqConcurrency | quote }}
- name: LAGO_LOG_LEVEL
value: {{ .Values.worker.rails.logLevel | quote }}
{{ if .Values.global.newRelic.enabled }}
- name: NEW_RELIC_KEY
valueFrom:
Expand Down
2 changes: 2 additions & 0 deletions templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ spec:
value: {{ .Values.worker.rails.sidekiqConcurrency | quote }}
- name: SIDEKIQ_CONCURRENCY
value: {{ .Values.worker.rails.sidekiqConcurrency | quote }}
- name: LAGO_LOG_LEVEL
value: {{ .Values.worker.rails.logLevel | quote }}
{{ if .Values.global.license }}
- name: LAGO_LICENSE
valueFrom:
Expand Down
30 changes: 17 additions & 13 deletions values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "0.54.1-beta"
version: "0.54.2-beta"

#apiUrl:
#frontUrl:
Expand Down Expand Up @@ -56,7 +56,7 @@ global:
#fromEmail:
newRelic:
enabled: false
#key
#key:

# You can disable Lago's signup
signup:
Expand All @@ -73,8 +73,8 @@ front:
service:
port: 80
resources:
memory: 128
cpu: "100m"
memory: 512
cpu: "200m"

api:
replicas: 1
Expand All @@ -85,11 +85,12 @@ api:
webConcurrency: 4
env: "production"
logStdout: true
logLevel: error
sidekiqWeb:
enabled: true
resources:
memory: 128
cpu: "100m"
memory: 1024
cpu: "1000m"
volumes:
storage: "10Gi"

Expand All @@ -99,33 +100,36 @@ worker:
sidekiqConcurrency: 100
env: "production"
logStdout: true
logLevel: error
resources:
memory: 128
cpu: "100m"
memory: 1024
cpu: "1000m"

eventsWorker:
replicas: 1
rails:
sidekiqConcurrency: 100
env: "production"
logStdout: true
logLevel: error
resources:
memory: 128
cpu: "100m"
memory: 1024
cpu: "1000m"

clock:
replicas: 1
rails:
env: "production"
logStdout: true
logLevel: info
resources:
memory: 128
memory: 256
cpu: "100m"

pdf:
replicas: 1
service:
port: 3001
resources:
memory: 128
cpu: "100m"
memory: 2048
cpu: "1000m"

0 comments on commit f7eaaad

Please sign in to comment.