-
|
I'm using Strimzi Operator to deploy AutoMQ Kafka variant and need to scrape metrics from it. Unfortunately I cannot use Problem is, I need to expose custom port in broker container spec to allow scraping of those metrics. AFAIU with strimzi the container port configuration is tightly coupled with Is there a way to expose custom broker container port with Strimzi? If not, I potentially can add a MutatingWebhook to patch in port in the Pod on creation, but need to make sure this won't confuse strimzi operator. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
No, that is not possible today without changing the code or without using a mutating webhook (which is probably easier in the long term than maintaining a fork of Strimzi). I think this should be pretty simple with the webhook and should not cause any issues to the operator (as long as you use your own port number of course). You might need to also add some network policies probably. I guess you can also use the OLTP push metrics instead of pull metrics - which do not need a port to be exposed. But I guess you saw the in the docs you linked and for some reason do not want to use it. |
Beta Was this translation helpful? Give feedback.
No, that is not possible today without changing the code or without using a mutating webhook (which is probably easier in the long term than maintaining a fork of Strimzi). I think this should be pretty simple with the webhook and should not cause any issues to the operator (as long as you use your own port number of course). You might need to also add some network policies probably.
I guess you can also use the OLTP push metrics instead of pull metrics - which do not need a port to be exposed. But I guess you saw the in the docs you linked and for some reason do not want to use it.