feat: Add Grafonnet-based OpenStack Libvirt Dashboard#109
feat: Add Grafonnet-based OpenStack Libvirt Dashboard#109aravindh-murugesan wants to merge 1 commit intoinovex:masterfrom
Conversation
|
@frittentheke Any feedback on this PR? I'd be happy to improvise if this patch needs any tweaks. |
Thanks @aravindh-murugesan for taking the time and effort to make this dashboard and to also convert it to jsonnet. I just took this board for a quick spin -- looks good so far. @Knalltuete5000 will test this in a proper environment with lots of projects to see if everything works. We'll merge it once no issues show up! |
|
Thanks for the PR. The variable for the project name, the vm name and the vm id are extracted correctly but please remind that these variables are openstack specific why the rendered query, e.g. for the up state |
Knalltuete5000
left a comment
There was a problem hiding this comment.
There is a mixup between the openstack vm id and the libvirt domain id. These ids do not match each other but can be matched via the libvirt_domain_openstack_info
|
Can you also adjust queries like, e.g. query for the In other queries are also some hardcoded intervals like 2 minutes or some other |
I have figured it out why this is the case: Nova has a feature that it can create the vms so the libvirt instance and the nova server have the same id. But this needs to be enabled and in some cases in an openstack environment this is not the case. In my test environment this is the case that these ids are different, but it should be safe to always use the group_left to fix this issue and the dashboard can be used with both settings |
Understood. In my environment, both nova and libvirt domains have the same ID. So I assumed that would be the case. But I can try to improve this over weekend. I will read up Thanks for the valuable feedback. |
|
@Knalltuete5000 @frittentheke I have a different suggestion. Instead of modifying all the queries to include joins, can we include another dependent variable that identifies the domain id, and use that as a filter for all our queries. So we will have 4 variables,
Subsequently we modify the query to use this - for example I feel like this would be an efficient solution. Let me know what you think. |
|
Sure. If this is a cleaner way and also simpler to approach the issue with the different ids. Do I understand it also correctly, that the Please let me know if I should test any of the updates with the different ids |
you meant to use Also you can also set the unit to |
Yes it would be a hidden variable and wont show up as a drop down for the user.
Yes, I switched to Will be updating the PR in a few mins. I will let @Knalltuete5000 confirm if this works for him when openstack id and domain id are different. And thanks for that tip about percent 0-1. I did not know that. We are use this same query in our billing system to query metrics, I left it unchanged for now. |
cb4b760 to
6dc4825
Compare
|
@Knalltuete5000 Can you test the new changes please? |
|
I have just pasted in the rendered dashboard in our environment and on the first sight it looks pretty good. I currently have some metrics which do not show up but I think part of the problem is, that we still run an older version of the libvirt exporter. And can you add some short instructions on how to render the dashboards (requirements, etc.). That would be great. In the mean time I will test some scenarios with the dashboard in the next few days and will report back if some additional changes are required (but I do not think so 😄 ) Thanks again for this great PR |
|
@Knalltuete5000 Sure thing. I will add instructions to render and add the version this dashboard is tested against. Just curious, what panels are not working for you? |
|
After an update of the libvirt exporter some of the panels now work. the version was just to old. But the whole storage section does not work with a query error: One of the queries is which results in the following error I think the query should look like this: And as of some resources point out, e.g https://www.robustperception.io/rate-then-sum-never-sum-then-rate/ it is better to use a sum on a rate then the rate of the sum |
I will take a look. This query works for me, but I'm not sure if this difference comes down to victoria metrics(which is what I use) and prometheus (which I assume you are using?) Thanks for the heads up.. Will fix it. |

Description
This PR adds a new Grafana dashboard generated using Grafonnet.
Closes #17