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

Configure Prometheus to scrape Kubelets directly #217

Merged
merged 1 commit into from
May 15, 2018

Conversation

dghubble
Copy link
Member

  • Use Kubelet bearer token authn/authz to scrape metrics
  • Drop RBAC permission from nodes/proxy to nodes/metrics
  • Stop proxying kubelet scrapes through the apiserver, since this required higher privilege (nodes/proxy) and can add load to the apiserver on large clusters

@dghubble
Copy link
Member Author

Oh, this is missing container_* metrics. We still need a modified metrics path replacement to scrape the Kubelet's CAdvisor metrics path, instead of its default metrics. Will followup with a fix when I get a chance.

@dghubble dghubble force-pushed the enhance-prometheus-security branch from efeb6a6 to 1190dea Compare May 15, 2018 05:35
@dghubble
Copy link
Member Author

Fixed the cadvisor metrics path.

* Use Kubelet bearer token authn/authz to scrape metrics
* Drop RBAC permission from nodes/proxy to nodes/metrics
* Stop proxying kubelet scrapes through the apiserver, since
this required higher privilege (nodes/proxy) and can add
load to the apiserver on large clusters
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

Successfully merging this pull request may close these issues.

None yet

1 participant