jmcgrath207 / k8s-ephemeral-storage-metrics

Prometheus ephemeral storage metrics exporter
https://jmcgrath207.github.io/k8s-ephemeral-storage-metrics/
MIT License
85 stars 35 forks source link

support directly scraping from kubelet endpoint #90

Closed mchtech closed 4 months ago

mchtech commented 4 months ago

support directly scraping node metrics from kubelet endpoint in large K8s cluster.

jmcgrath207 commented 4 months ago

Nice! Thanks for your contribution @mchtech. I will have to poke around a bit on my end, but will follow up.

Is there any reason we shouldn't do the anonymous mode as default (aside from breaking continuity for 1.x.x). My guess is the user would have to make some host changes to make this work.

mchtech commented 4 months ago

Nice! Thanks for your contribution @mchtech. I will have to poke around a bit on my end, but will follow up.

Is there any reason we shouldn't do the anonymous mode as default (aside from breaking continuity for 1.x.x). My guess is the user would have to make some host changes to make this work.

anonymous mode relies on kubelet readOnlyPort config.

jmcgrath207 commented 4 months ago

Thanks for that information, @mchtech. I changed a few things around, but you should be able to use this feature now in 1.10.0

https://github.com/jmcgrath207/k8s-ephemeral-storage-metrics/blob/master/chart/values.yaml#L20

I will look into expanding e2e testing for this configuration later this week.