-
Notifications
You must be signed in to change notification settings - Fork 114
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
Fetching kube-scheduler and kube-controller-manager metrics from AWS EKS Control Plane #1219
Comments
it could be interest add "additionalRulesForClusterRole" in values to allow add custom specification, no? |
Yes, that could help |
I wonder if this issue has been resolved? |
That value doesn't exist. I didn't find where rbac are defined to create a PR. It would be easy to add. |
oh ok. i ll try to add custom clusterrole and clusterrolebinding |
I've opened a pull request to add this configuration into official alloy chart. If this will be approved, the following configuration should solve the issue:
|
First of all, I really appreciate the work you are doing with this helm chart. It helps a lot to build powerful observability solutions in a simple way!
I am having problems to fetch kube-scheduler and kube-controller-manager metrics using the Cluster Metrics feature in an EKS cluster. Setting a configuration like the following one, it does not work for me:
On the AWS documentation, it is mentioned:
"For clusters that are Kubernetes version 1.28 and above, Amazon EKS also exposes metrics under the API group metrics.eks.amazonaws.com. These metrics include control plane components such as kube-scheduler and kube-controller-manager"
I added the following extra config to the Alloy collector for metrics converting part of a sample Prometheus configuration provided in the AWS documentation and now I am able to scrape kube-scheduler and kube-proxy metrics from the metrics.eks.amazonaws.com api group:
The problem is that the created clusterrole that is used by the Alloy pod for collecting metrics needs to be patched with the following permissions in order to access the
metrics.eks.amazonaws.com
endpoint:When I upgrade the chart, the patch for the new permissions is lost and the clusterrole needs to be repatched to get the metrics again. I searched the
rbac.yaml
template from the Alloy chart to check if permissions could be added but it seems they are hardcoded.Is there any workaround here that could be provided? Maybe I am missing something. Thanks again!
The text was updated successfully, but these errors were encountered: