You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.
Since for CPU we do want milli and for memory we prefer raw bytes so we can transform it to Mi/Gi or whatever on our own, it seems for me that everything is fine. The results are also consistent with what kubectl top nodes/pods shows. The only issue is on our side (dashboard).
I've found also some issues on the scraper side. Some values were stripped down or changed in the wrong way.
Storing metricses in milli as follows:
https://github.com/kubernetes-sigs/dashboard-metrics-scraper/blob/master/pkg/database/database.go#L42
https://github.com/kubernetes-sigs/dashboard-metrics-scraper/blob/master/pkg/database/database.go#L56
But retriving and modified in
pkg/api/dashboard/dashboard.go
as follows:return in micro scale?
https://github.com/kubernetes-sigs/dashboard-metrics-scraper/blob/master/pkg/api/dashboard/dashboard.go#L169
metrics-server
returns cpu usage in123456780n
format, maybe in nano scale, and memory usage in4567890Ki
, so followings aims to modify these raw value, I guess. But the values seems to be stored already in milli as above.https://github.com/kubernetes-sigs/dashboard-metrics-scraper/blob/master/pkg/api/dashboard/dashboard.go#L211-L214
https://github.com/kubernetes-sigs/dashboard-metrics-scraper/blob/master/pkg/api/dashboard/dashboard.go#L243
https://github.com/kubernetes-sigs/dashboard-metrics-scraper/blob/master/pkg/api/dashboard/dashboard.go#L248
I could not test these things, but I guess this might cause issue like follow. kubernetes/dashboard#4827
The text was updated successfully, but these errors were encountered: