In this post:
- Learn how using Grafana in oVirt can help you save time and resources, free resources, optimize your workload schedule, and more!
As an administrator, it can be difficult to get the right level of visibility across your infrastructure. With the oVirt monitoring portal and Grafana dashboards, you can understand your data, identify problems early, utilize your resources efficiently and much more!
The portal includes 20 dashboards, and at least 150 panels to monitor the oVirt environment. Find more information about how to configure and use Grafana in Visualize and Monitor the oVirt environment with Grafana.
You might still be asking yourself: what exactly can Grafana do in oVirt? In this post, we cover six ways you can use Grafana to monitor and obtain metrics and logs from your oVirt system. Let’s dive in.
1. It can help you save time and resources by identifying virtual machines that you can delete
The “Virtual Machines Uptime Dashboard” presents the downtime and uptime, CPUs, memory size, create date, and update date for each virtual machine (VM).
Manually, finding idle or unused workloads across thousands of VMs may take weeks and require a very large spreadsheet. Our dashboard can help you identify unused VMs based on their planned downtime, and check if they can be deleted—thus saving money.
You can also see more details on VMs that often experience unplanned downtime. Click on the VM name to see further details such as their users, disk size, and more.
2. You can use oVirt monitoring portal to identify datacenters and clusters that have high overcommit rates
In the “Inventory Dashboard,” you can see the running VMs in each datacenter and in each cluster of your environment, including resource overcommit rates for the VMs.
You can see whether the resource allocation is balanced and whether resources should be removed or added across datacenters and clusters.
3. You’re able to assess current data storage needs
Inadequate storage space can cause processes to fail and can be expensive if not managed properly. Luckily, we have a monitoring solution just for that.
The “Storage Domain Inventory” dashboard” is where you can find the domain type, storage type, available disk size, and used disk size. When you specify a maximum GB size, the dashboard will filter to all storage domains that are smaller than that size so that you can see the most used or unused storage domains and allocate available space accordingly between the storage domains.
The dashboard helps you avoid lack of space to achieve optimal performance.
4. oVirt monitoring portal can identify VMs with open sessions that can be closed
Most environments have a large number of VMs—even if each machine consumes few resources, together they can add up and consume a huge amount. To prevent this waste, we should identify the unused machines as soon as possible.
In the “Executive Dashboard,” you can identify VM sessions with high average resource usage and see their session length according to the selected time range.
You can click on the name of the VM and see further details such as which users used the VM and when.
5. It can optimize your workload schedule
oVirt monitoring portal also has a “Hosts/Virtual Machines Resource Usage Dashboard,” where you can identify busy days and hours of resource consumption (memory and CPU usage).
With this dashboard, you can see if your workloads can be distributed more efficiently according to day of the week and hour of the day. In addition, you can use it to identify the most convenient times for maintenance and control processes.
6. You can navigate easily to find the dashboard relevant to your needs
As mentioned earlier, there are many Grafana dashboards for different topics within the oVirt monitoring portal. It can be difficult to find the dashboard that contains the information you are looking for. With the help of tags, you can easily filter the available dashboards.
For example, if you want to find data about VM downtime, use preset tags like “VM” and “Downtime.”
Where can I learn more about Grafana?
That wraps up our Grafana recap. If you find the oVirt Monitoring portal useful or have feedback, Join oVirt community and ask additional questions in oVirt users mailing list or other methods we mention at: https://www.ovirt.org/community/
For additional information, check out these resources:
- Enabling Grafana integration manually: Using Data Warehouse and Grafana to monitor oVirt.
- Full dashboards descriptions can be found in the Administration Guide: Built-in Grafana dashboards.
-
The data available in the data warehouse: Statistics History Views, Configuration History Views.
- Some of the dashboards were presented at the DevConf.CZ (2021) – oVirt monitoring with Grafana & advanced options.
Hi Aviv,
Is there a way if we can run grafana on separate VM and integrate with ovirt-engine.
If Yes, Can please share the documentation for that ?
Yes it is possible to install and configure DWH and Grafana on a separate VM:
https://ovirt.org/documentation/data_warehouse_guide/index.html#Installing_and_Configuring_Data_Warehouse_on_a_Separate_Machine_DWH_admin
It is also possible to migrate DWH and Grafana to a separate VM:
https://ovirt.org/documentation/data_warehouse_guide/index.html#Migrating_Data_Warehouse_to_a_Separate_Machine_DWH_admin
Hi Aviv,
Can you please share a blog where I setup grafana and Prometheus from scratch. Couldn’t find it
Hi Abhi,
oVirt does not support Prometheus, we use PostgreSQL as a database platform.
Hi Aviv.
Can you share where to configure the time that Postgres stores the statistical data for grafana ?
Hi Elias,
Application Settings for the Data Warehouse service in ovirt-engine-dwhd.conf:
https://ovirt.org/documentation/data_warehouse_guide/index.html#Application_Settings_for_the_Data_Warehouse_service_in_ovirt-engine-dwhd_file
You can also change the Data Warehouse Sampling Scale:
# engine-setup –reconfigure-dwh-scale
(1) Basic: Basic reduces the values of DWH_TABLES_KEEP_HOURLY to 720 and DWH_TABLES_KEEP_DAILY to 0, easing the load on the Engine machine. Use Basic when the Engine and Data Warehouse are installed on the same machine.
(2) Full: Full uses the default values for the data storage settings listed in Application Settings for the Data Warehouse service in ovirt-engine-dwhd.conf (recommended when Data Warehouse is installed on a remote host).
Hi Aviv,
I am getting ” origin not allowed” when i test Ovirt dwh data source.
Not displaying any dashboards
The data source is configured automatically during Grafana configuration.
Grafana integration is usually configured by default, from oVirt 4.4.8 and above. If it’s not, you can follow these steps to configure Grafana manually: https://ovirt.org/documentation/administration_guide/index.html#using-data-warehouse-and-grafana-to-monitor-ovirt.
Hi Aviv,
Issue was with grafana version grafana-7.5.15-1.el8.x86_64. After i downgraded to version grafana-7.5.11-2.el8.x86_64 issue got fixed.
Thanks,
Surendra
Hi Surendra,
Glad to hear that!
Contact me if you have any further questions.
Thanks
Hello Team,
To ensure optimal functionality of grafana within oVirt, I suggest deploying the built-in grafana on oVirt version 4.5.4 or later. This recommendation stems from significant bug fixes that have been implemented from this version onwards. I hope this information is helpful.
Thanks,
Al
Hi Aviv,
Can we configure the email alerting with the default Grafana (7.5.15 Version) that is installed with oVirt 4.4.10 installation (Oracle Linux Virtualization Manager)?
Could you please share the documentation for the same.