Christopher Paro
05/31/2023, 8:41 PM"2023-05-31T20:39:36.574Z\terror\tscraperhelper/scrapercontroller.go:212\tError scraping metrics\t{\"kind\": \"receiver\", \"name\": \"kubeletstats\", \"data_type\": \"metrics\", \"error\": \"Get \\\"<https://dynamic-premium-intel-frnw6:10250/stats/summary>\\\": dial tcp: lookup dynamic-premium-intel-frnw6 on 10.245.0.10:53: no such host\", \"scraper\": \"kubeletstats\"}"
Srikanth Chekuri
06/01/2023, 1:30 AMChristopher Paro
06/01/2023, 4:00 AMChristopher Paro
06/06/2023, 10:28 PMPrashant Shahi
06/13/2023, 4:10 PMkubeletstats
receiver is unable to fetch metrics since the kubelet API port of the host is not accessible from within the container.
It would take some time to find proper solution around this.
Meanwhile, you could use cadvisor instead to get K8s metrics and use otel-collector-metrics to scrape it either with config change or pod annotation <http://signoz.io/scrape|signoz.io/scrape>
and <http://signoz.io/port|signoz.io/port>
.
https://github.com/google/cadvisor/tree/master/deploy/kubernetes