-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement: Graphs in the nodes preview page #58
Comments
PRs are always welcome! I have thought about this in the past as well, but I think I've reached some point that got me stuck, probably relates do lack of metrics or metrics not as accurate. |
I was able to build this: Maybe it's a bit big ? I retrieve the metrics from prometheus with:
Unfortunately, I think these metrics are only available with the prometheus node exporter. |
That looks promising. And now I think I remember why I haven't implemented that, that's because of the node exporter. /*
* Check if Prometheus is Enabled
*/
checkPrometheus(): Observable<any> {
var metric = "kubevirt_info";
var baseUrl ='./api/v1/query?query';
var promQuery = metric;
return this.http.get(`${baseUrl}=${promQuery}`);
} When you open the main screen/dashboard component, I use this guy to determine if prometheus is available. |
I didn't have time to work on this week, but the code is here: https://github.com/Titof974/kubevirt-manager I just need to clean it a bit and rename some variables. |
I'm on vacation this week and the next, so I don't have the resources to test it here with me, but please, take your time as well, no rushes at all. Thanks again! |
Hi @feitnomore,
I want to add graphs in the node preview page to see what are the resources available.
Something like this:
The metrics will be retrieved from Prometheus.
If it's ok for you, I can create a PR to do it.
The text was updated successfully, but these errors were encountered: