Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broker CPU metric measured per node and not container #2250

Open
Milana-Gelman-PX opened this issue Feb 4, 2025 · 0 comments
Open

Broker CPU metric measured per node and not container #2250

Milana-Gelman-PX opened this issue Feb 4, 2025 · 0 comments

Comments

@Milana-Gelman-PX
Copy link

Hi,
We tested cruise control with our kafka clusters and we see a diffrent cpu value for each kafka broker in our metrics vs. the values in cruise control UI.
We using container_cpu_usage_seconds_total metric of kubelet that measuring CPU per kafka container,
I can see that cruise control using node_cpu_seconds_total metric of node exporter (

String.format("1 - avg by (instance) (irate(node_cpu_seconds_total{mode=\"idle\"}[%dm]))",
)

The use of node exporter in cruise control logic causes incorrect rebalancing in our clusters (according to cpu goals) since we running on our nodes many different containers (not only Kafka) that change all the time.

I dont see an option to configure the metric to be per container/use jmx cpu metric instead of node metric. there is a solution to this other than separating Kafka into separate nodes ?

and if separating, will be happy to understand what is behind the idea of using metric at node level ?

(trying to understand if its a bug or a feature)

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant