prometheus-community / helm-charts

Prometheus community Helm charts
Apache License 2.0
4.94k stars 4.98k forks source link

How to expose cadvisor? #3619

Open 11477 opened 1 year ago

11477 commented 1 year ago

I'm a newbie to prometheus.I have deployed Prometheus on both Minikube and the host, and now I want to expose the cadvisor on Minikube so that I can add it to the endpoint of my host, and the host can monitor the data of each pod on Minikube. However, after trying for a long time, the endpoint of the host is indeed ’Get “https://192.168.49.2:30001/api/v1/nodes/minikube/proxy/metrics/cadvisor X509”: Certificate signed by unknown authority‘, as shown in the figure below. How can I modify it? image

weyderfs commented 1 year ago

I'm a newbie to prometheus.I have deployed Prometheus on both Minikube and the host, and now I want to expose the cadvisor on Minikube so that I can add it to the endpoint of my host, and the host can monitor the data of each pod on Minikube. However, after trying for a long time, the endpoint of the host is indeed ’Get “https://192.168.49.2:30001/api/v1/nodes/minikube/proxy/metrics/cadvisor X509”: Certificate signed by unknown authority‘, as shown in the figure below. How can I modify it? image

I believe the error is not related to Prometheus ’Get “https://192.168.49.2:30001/api/v1/nodes/minikube/proxy/metrics/cadvisor X509”: Certificate signed by unknown authority‘ and is about the certificate.