Skip to content

Commit

Permalink
17236 Add cache-maxsize chart option for cluster-collector
Browse files Browse the repository at this point in the history
This werk introduces the chart option for cluster-collector
to set cache-maxsize if a k8s-cluster generates more than
10000 metrics.

Closes: #27

Change-Id: If3902a77b8aef64803c75684737dc1b75448dd8d
  • Loading branch information
Axel Schmidt authored and anthonyh209 committed Oct 11, 2024
1 parent b784c3b commit 4517943
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .werks/17236.md
Original file line number Diff line number Diff line change
@@ -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.
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={{ 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 }}
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 4517943

Please sign in to comment.