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

Multicluster support for k8s mixin alerts & rules #695

Open
vishiy opened this issue Nov 10, 2021 · 3 comments
Open

Multicluster support for k8s mixin alerts & rules #695

vishiy opened this issue Nov 10, 2021 · 3 comments

Comments

@vishiy
Copy link

vishiy commented Nov 10, 2021

showMultiCluster is useful in controlling multiCluster behavior for dashboards. But i dont see it used consistently across across all rules & alerts in k8s mixin. Is that a bug ? In multi cluster stores, this would be a problem . Anyone have any thoughts/guidance here ? Much appreciate your help.

@povilasv
Copy link
Contributor

hey, could you give concrete examples?

@vishiy
Copy link
Author

vishiy commented Nov 22, 2021

I see it in many places for rec.rules & alerting rules - ex;- below - so if i need to run this on a multi cluster store, it needs to account for cluster/resource dimension/label. I also see this when i look at core-dns or node mixins , which are defaulted by kube-stack along with k8s-mixin.

@phillebaba
Copy link
Contributor

@povilasv basically any rule or alert that does 1 to 1 merging of series based on the node ip has this problem.

histogram_quantile(0.5, sum(rate(kubelet_pleg_relist_duration_seconds_bucket[5m])) by (instance, le) * on(instance) group_left(node) kubelet_node_name{job="kubelet"})

The example above will have issues in an instance where two clusters have nodes with the same ip. In this case the value of instance would be the node ip. This query will fail without any additional labels to differentiate between the different timeseries.

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

3 participants