cytopia / metrics-server-prom

Prometheus adapter to scrape from Kubernetes metrics-server
MIT License
21 stars 8 forks source link

Prometheus Scrapping Error #15

Open thiruvens opened 4 years ago

thiruvens commented 4 years ago

Hi,

while scrapping metrics page of cytopia container by prometheus , following message is logged at prometheus. could please help to fix it.

level=warn ts=2020-01-16T16:33:52.682948027Z caller=scrape.go:835 component="scrape manager" scrape_pool=k8s_usage target=http://localhost:9100/metrics msg="append failed" err="strconv.P arseFloat: parsing \"5761140264n\": invalid syntax" level=warn ts=2020-01-16T16:34:02.668555018Z caller=scrape.go:835 component="scrape manager" scrape_pool=k8s_usage target=http://localhost:9100/metrics msg="append failed" err="strconv.P arseFloat: parsing \"226202814n\": invalid syntax" level=warn ts=2020-01-16T16:34:12.647209977Z caller=scrape.go:835 component="scrape manager" scrape_pool=k8s_usage target=http://localhost:9100/metrics msg="append failed" err="strconv.P arseFloat: parsing \"226202814n\": invalid syntax"

ronny-panknin-flaconi commented 1 year ago

This is because of the string "226202814n". After calculate nanocores to cores as int or float the problem should be solved.