2 # Specifies whether RBAC resources should be created
5 # Specifies whether a ServiceAccount should be created
7 # The name of the ServiceAccount to use.
8 # If not set and create is true, a name is generated using the fullname template
12 repository: chainreg.biz/scratch-images/test-tmp/prometheus-redis-exporter
13 pullPolicy: IfNotPresent
14 # Overrides the image tag whose default is the chart appVersion.
15 tag: 1.88.0-r0@sha256:26e3def5aaf70b21dad0811d8c91c0cd2982bfe2b1186f2784a1a342af00900a
21# global custom labels, applied to all resrouces
24# Additional Environment variables
26# - name: REDIS_PASSWORD
30# name: redis-config-0.0.2
34 portName: redis-exporter
37 # prometheus.io/path: /metrics
38 # prometheus.io/port: "9121"
39 # prometheus.io/scrape: "true"
45## Extra manifests to deploy as an array
51# name: redis-exporter-extra
55# If serviceMonitor.multipleTarget is enabled, this configuration is actually not used
56redisAddress: redis://myredis:6379
57# deployment additional annotations and labels
60# prometheus.io/path: /metrics
61# prometheus.io/port: "9121"
62# prometheus.io/scrape: "true"
65 # configure `REDIS_ADDR` from a configmap
67 # if `true` the `REDIS_ADDR` is sourced on a secret instead of a configmap
69 # Use an existing configmap or secret will ignore redisAddress
74 # Use TLS configuration
76 # Whether to to skip TLS verification
77 skipTlsVerification: false
78 # All secrets key about TLS config will be mounted into this path
80 # REDIS_EXPORTER_TLS_CA_CERT_FILE will be set to /tls/tls-ca-cert.crt
85 # REDIS_EXPORTER_TLS_CLIENT_KEY_FILE will be set to /tls/tls-client-key.key
90 # REDIS_EXPORTER_TLS_CLIENT_CERT_FILE will be set to /tls/tls-client-cert.crt
95 # REDIS_EXPORTER_TLS_SERVER_KEY_FILE will be set to /tls/tls-server-key.key
100 # REDIS_EXPORTER_TLS_SERVER_CERT_FILE will be set to /tls/tls-server-cert.crt
106 # When set true then use a ServiceMonitor to configure scraping
108 apiVersion: "monitoring.coreos.com/v1"
109 multipleTarget: false
111 # for every targets, url and name must be set,
112 # an individual additionalRelabeling can be set for every target
113 # - url: "redis://myredis:6379"
115 # - url: "redis://my-redis-cluster:6379"
117 # additionalRelabeling:
118 # - sourceLabels: [type]
120 # replacement: cluster
121 # additionalMetricsRelabels:
123 additionalMetricsRelabels: {}
124 additionalRelabeling: []
125 # Set the namespace the ServiceMonitor should be deployed
126 # namespace: monitoring
127 # Set how frequently Prometheus should scrape
129 # Set path to redis-exporter telemtery-path
130 # Please set telemetryPath to /scrape if you are using multiple targets
131 # telemetryPath: /metrics
132 # Set labels for the ServiceMonitor, use this to define your scrape label for Prometheus Operator
134 # Set timeout for scrape
136 # Set relabel_configs as per https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
138 # Set of labels to transfer on the Kubernetes Service onto the target.
140 # metricRelabelings: []
144## Custom PrometheusRules to be defined
145## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
146## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
152 ## These are just examples rules, please adapt them to your needs.
153 ## Make sure to constraint the rules to the current service.
155 # expr: redis_up{service="{{ template "prometheus-redis-exporter.fullname" . }}"} == 0
160 # summary: Redis instance {{ "{{ $labels.instance }}" }} down
161 # description: Redis instance {{ "{{ $labels.instance }}" }} is down.
162 # - alert: RedisMemoryHigh
164 # redis_memory_used_bytes{service="{{ template "prometheus-redis-exporter.fullname" . }}"} * 100
166 # redis_memory_max_bytes{service="{{ template "prometheus-redis-exporter.fullname" . }}"}
172 # summary: Redis instance {{ "{{ $labels.instance }}" }} is using too much memory
174 # Redis instance {{ "{{ $labels.instance }}" }} is using {{ "{{ $value }}" }}% of its available memory.
175 # - alert: RedisKeyEviction
177 # increase(redis_evicted_keys_total{service="{{ template "prometheus-redis-exporter.fullname" . }}"}[5m]) > 0
182 # summary: Redis instance {{ "{{ $labels.instance }}" }} has evicted keys
184 # Redis instance {{ "{{ $labels.instance }}" }} has evicted {{ "{{ $value }}" }} keys in the last 5 minutes.
185# Used to mount a LUA-Script via config map and use it for metrics-collection
187# configmap: prometheus-redis-exporter-script
190 # Use password authentication
192 # Use existing secret (ignores redisPassword)
196 # Redis password (when not stored in a secret)
198 # Redis user (version 6.X and above)
200 # Redis password file (e.g., https://github.com/oliver006/redis_exporter/blob/v1.27.0/contrib/sample-pwd-file.json)
201 # secret (useful for multiple redis instances with different passwords). If secret name and key are set
202 # this will ignore the single password auth.secret.*
204 # The secret key will be mounted into this path as a file
205 # e.g., if secret key is pass.json, the env variable
206 # REDIS_PASSWORD_FILE will be set to /auth/pass.json
212 # This is useful on clusters using Calico and/or native k8s network policies in a default-deny setup.
214 # -- A list of valid from selectors according to https://kubernetes.io/docs/concepts/services-networking/network-policies.
216podSecurityContext: {}
217# Example podsecurity policy
218# More information available at:
219# https://kubernetes.io/docs/concepts/security/pod-security-standards/
222# type: RuntimeDefault