diff --git a/.werks/17236.md b/.werks/17236.md new file mode 100644 index 0000000..36ed8ce --- /dev/null +++ b/.werks/17236.md @@ -0,0 +1,16 @@ +[//]: # (werk v2) +# Add cache-maxsize chart option for cluster-collector + +key | value +---------- | --- +date | 2024-10-10T12:14:25+00:00 +version | 2.0.0-alpha.1 +class | feature +edition | cre +component | helm +level | 1 +compatible | yes + +This werk introduces the chart option for cluster-collector +to set cache-maxsize if a k8s-cluster generates more than +10000 metrics. diff --git a/deploy/charts/checkmk/templates/cluster-collector-deploy.yaml b/deploy/charts/checkmk/templates/cluster-collector-deploy.yaml index e62f128..5bf5ce1 100644 --- a/deploy/charts/checkmk/templates/cluster-collector-deploy.yaml +++ b/deploy/charts/checkmk/templates/cluster-collector-deploy.yaml @@ -47,6 +47,7 @@ spec: args: - "--log-level={{ .Values.clusterCollector.logLevel }}" - "--address={{ default "0.0.0.0" .Values.clusterCollector.address }}" + - "--cache-maxsize={{ default "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 }} diff --git a/deploy/charts/checkmk/values.yaml b/deploy/charts/checkmk/values.yaml index ce566ab..7650b81 100644 --- a/deploy/charts/checkmk/values.yaml +++ b/deploy/charts/checkmk/values.yaml @@ -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: {}