Skip to content

Commit

Permalink
add chart option for cluster-collector to set cache-maxsize if a k8s-…
Browse files Browse the repository at this point in the history
…cluster generate more than 10000 metrics
  • Loading branch information
schmidax committed May 22, 2024
1 parent de7b781 commit 056664f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
args:
- "--log-level={{ .Values.clusterCollector.logLevel }}"
- "--address={{ default "0.0.0.0" .Values.clusterCollector.address }}"
- "--cache-maxsize={{ defaulut "10000" .Values.clusterCollector.cacheMaxsize }}"
- "--reader-whitelist={{ .Release.Namespace }}:{{ template "checkmk.serviceAccountName.checkmk" . }}"
- "--writer-whitelist={{ .Release.Namespace }}:{{ template "checkmk.serviceAccountName.nodeCollector.containerMetricsCollector" . }},{{ .Release.Namespace }}:{{ template "checkmk.serviceAccountName.nodeCollector.machineSectionsCollector" . }}"
{{- if .Values.tlsCommunication.enabled }}
Expand Down
3 changes: 3 additions & 0 deletions deploy/charts/checkmk/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ clusterCollector:
# can be: "debug", "info", "warning" (default), "critical"
logLevel: warning

# cacheMaxsize set the maximum number of metric entries the cluster collector can hold at a time
cacheMaxsize: "10000"

podAnnotations: {}

podSecurityContext: {}
Expand Down

0 comments on commit 056664f

Please sign in to comment.