Skip to content

Commit

Permalink
Merge pull request #429 from nlamirault/feat/logging-json
Browse files Browse the repository at this point in the history
  • Loading branch information
slok committed Nov 26, 2022
2 parents 128115f + 687c385 commit e147cad
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/kubernetes/helm/sloth/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description: Base chart for Sloth.
type: application
home: https://github.com/slok/sloth
kubeVersion: ">= 1.19.0-0"
version: 0.6.4
version: 0.7.0
1 change: 1 addition & 0 deletions deploy/kubernetes/helm/sloth/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ spec:
{{- if .Values.customSloConfig.enabled }}
- --slo-period-windows-path={{ .Values.customSloConfig.path }}
{{- end }}
- --logger={{ .Values.sloth.logger }}
{{- if .Values.sloth.debug.enabled }}
- --debug
{{- end}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ spec:
- --extra-labels=k2=v2
- --sli-plugins-path=/plugins
- --disable-optimized-rules
- --logger=default
ports:
- containerPort: 8081
name: metrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
- --extra-labels=k1=v1
- --extra-labels=k2=v2
- --disable-optimized-rules
- --logger=default
securityContext:
allowPrivilegeEscalation: false
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ spec:
- --extra-labels=k2=v2
- --disable-optimized-rules
- --slo-period-windows-path=/windows
- --logger=default
ports:
- containerPort: 8081
name: metrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ spec:
args:
- kubernetes-controller
- --sli-plugins-path=/plugins
- --logger=default
ports:
- containerPort: 8081
name: metrics
Expand Down
2 changes: 2 additions & 0 deletions deploy/kubernetes/helm/sloth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ sloth:
optimizedRules: true # Reduce prom load for calculating period window burnrates.
debug:
enabled: false
# Could be: default or json
logger: default

commonPlugins:
enabled: true
Expand Down

0 comments on commit e147cad

Please sign in to comment.