Skip to content

Commit

Permalink
Show only logs with a severity level of ERROR or higher in the stderr (
Browse files Browse the repository at this point in the history
…kedacore#506)

Signed-off-by: Adarsh-verma-14 <[email protected]>
  • Loading branch information
Adarsh-verma-14 authored and choisungwook committed Nov 2, 2023
1 parent 6f7bc69 commit 8a66170
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions keda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ their default values.
| `image.metricsApiServer.repository` | string | `"ghcr.io/kedacore/keda-metrics-apiserver"` | Image name of KEDA Metrics API Server |
| `image.metricsApiServer.tag` | string | `""` | Image tag of KEDA Metrics API Server. Optional, given app version of Helm chart is used by default |
| `logging.metricServer.level` | int | `0` | Logging level for Metrics Server. allowed values: `0` for info, `4` for debug, or an integer value greater than 0, specified as string |
| `logging.metricServer.stderrthreshold` | string | `"ERROR"` | Logging stderrthreshold for Metrics Server allowed values: 'DEBUG','INFO','WARN','ERROR','ALERT','EMERG' |
| `metricsServer.affinity` | object | `{}` | [Affinity] for pod scheduling for Metrics API Server. Takes precedence over the `affinity` field |
| `metricsServer.dnsPolicy` | string | `"ClusterFirst"` | Defined the DNS policy for the metric server |
| `metricsServer.livenessProbe` | object | `{"failureThreshold":3,"initialDelaySeconds":5,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}` | Liveness probes for Metrics API Server ([docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)) |
Expand Down
1 change: 1 addition & 0 deletions keda/templates/metrics-server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ spec:
- --port={{ .Values.prometheus.metricServer.port }}
- --secure-port={{ .Values.service.portHttpsTarget }}
- --logtostderr=true
- --stderrthreshold={{ .Values.logging.metricServer.stderrthreshold }}
- --metrics-service-address={{ .Values.operator.name }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}:9666
- --client-ca-file={{ .Values.certificates.mountPath }}/ca.crt
- --tls-cert-file={{ .Values.certificates.mountPath }}/tls.crt
Expand Down
4 changes: 3 additions & 1 deletion keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ logging:
# -- Logging level for Metrics Server.
# allowed values: `0` for info, `4` for debug, or an integer value greater than 0, specified as string
level: 0

# -- Logging stderrthreshold for Metrics Server
# allowed values: 'DEBUG','INFO','WARN','ERROR','ALERT','EMERG'
stderrthreshold: ERROR
webhooks:
# -- Logging level for KEDA Operator.
# allowed values: `debug`, `info`, `error`, or an integer value greater than 0, specified as string
Expand Down

0 comments on commit 8a66170

Please sign in to comment.