Changing jmx prometheus exporter metrics config from legacy to new format does not update kafka statefulset #4804
Replies: 1 comment 1 reply
-
The way the metrics are implemented is that the operator copies the metrics configuration into another ConfigMap and that one is mounted into the Kafka pods. This was done so originally when the metrics were included in the Kafka CR directly. Now it is still done when mounting the metrics from Config Map. I guess with only ConfigMaps being supported from 0.23 on, we might get to change this and mount the config map directly, not sure TBH, the separation has some advantages sometimes. Also, The JMX Exporter is reloading the rules periodically from files, so when the rules change, there is no need to restart the pods. We just wait for it to update automatically. So if you were expecting some restart of the pods, that does not happen right now, but it is expected to not happen and you do not need to be worried about it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Using
strimzi-kafka-operator 0.21.1
, we had the jmx prometheus exporter configuration set since0.20.0
in what is now referred to as the legacy format:Which, from what I can tell, adds a volume mount to the
kafka
statefulset that points at akafka-kafka-config
configmap keyed onmetrics-config.yml
whose value is the json representation of the settings and rules underneathmetrics:
. At first, I was trying to update the existing ruleset and add new rules within thekafka
helm template, which was applied via helm terraform provider without a problem. Getting a manifest of the strimzi helm release afterwards shows the new rule set as expected, but thekafka-kafka-config
configmap was not updated.After looking at issues in the
strimzi-kafka-operator
repo, I noticed that we were using an old format and thought I should try changing to the new one:With a separate helm template file that defines the configmap with the rules I wanted:
Which also applied without a problem and the new Helm release revision manifest shows the new configmap and metrics config. Also, the configmap was created successfully with the key and value I expected. However, the
kafka
statefulset still was not updated and had the old volume mount pointing at the old configmap and key.What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions