-
Notifications
You must be signed in to change notification settings - Fork 7
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
found duplicate series for the match group #33
Comments
Thanks for your contribution @marianobilli . We'll take a look at your contribution and study how to solve this error. |
If you are interested here are my adjusted rules were basically instead of joining via In order to have these labels in
the adjusted prometheus rules
|
I realized that for these 4 metrics it will still be an issue
|
I think the solution could be to use hostname resource based naming for the eks nodes, it can be configured on the launch template of the managed node groups The problem for me is that the guys of the terraform EKS module do not have the parameter hostname_type https://github.com/terraform-aws-modules/terraform-aws-eks/blob/dc8a6eecddc2c6957ba309a939ee46f39b946461/modules/eks-managed-node-group/main.tf#L45 So it will require a PR to them |
Error explanation
Dears I found an issue in prometheus server when processing the rules that if two different machine types got the same ip and hence kubernetes node name, then the rule would fail as it does not know how to join the metrics.
Error Message (in prometheus server)
My solution
I've developed node-to-pod-labeler that scans the whole cluster and as soon as a pod is assigned to a node it will transfer the relevant labels from the node to the pod, then kube-state-metrics will expose these labels as part of the metrics, then the rules can be simplified and this error avoided.
Im sharing it in case you find it useful
The text was updated successfully, but these errors were encountered: