-
Notifications
You must be signed in to change notification settings - Fork 69
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
Promethus: Unable to monitor kube-scheduler, kube-proxy and kube-contoller-manager components #22
Comments
Worker node outage after applying changes specified in k3s-io/k3s#3619 Changes applied:
When the new targets are discovered Prometheus memory consumption increases a lot eventually producing a node outage for lack of memory. There is a known issue in K3S: k3s-io/k3s#2262, where duplicated metrics are emitted by the three components (kube-proxy, kube-scheduler and kube-controller-manager). This behaviour can be checked scraping the metrics using 10249 - kube-proxy
Duplicated metrics might cause higher memory consumption in Prometheus. As the proposed solution in k3s-io/k3s#2262 for Rancher Monitoring, the solution to avoid the scrape of duplicated metrics is to activate only the service monitoring of one of the components. (i.e. kube-proxy) |
Changing helm chart configuration to just enabling one of the services makes prometheus not suffer any memory increase, but the resulting configuration is not complete (only grafana dashboards of the enabled component is created) Applying for example: kubeControllerManager:
enabled: false
kubeScheduler:
enabled: false
kubeProxy:
enabled: true Prometheus-kube-stack helm chart create all the required resources (headless services , servicemonitor, and grafana dashboards) for monitoring kube-proxy but not the resources for monitoring the rest of components (headless services, service monitoring). Solution: Keep the configuration for monitoring these kube components out of kube-prometheus-stack control, disabling the monitoring in chart configuration, and create the required resources (headless service, service monitor and grafana dashboards) for monitoring them: One single headless |
Issue Description
kube-prometheus-stack
helm default installation unable to discover targets of some of the kubernetes components:The solution implies:
See how to solve this issue here:
k3s-io/k3s#3619
The text was updated successfully, but these errors were encountered: