Bug 1679333

Summary: [RFE] RHV metrics collection using Prometheus
Product: Red Hat Enterprise Virtualization Manager Reporter: Chetan Nagarkar <cnagarka>
Component: ovirt-engine-metricsAssignee: Peter Lauterbach <pelauter>
Status: CLOSED DEFERRED QA Contact: Lucie Leistnerova <lleistne>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.8CC: adevolder, baptiste.agasse, jean-louis, michal.skrivanek, mkalinin, pelauter, rpuccini, sradco
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-08 16:28:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Metrics RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
sql_exporter config none

Description Chetan Nagarkar 2019-02-20 22:14:54 UTC
Description of problem:
Support for Prometheus in RHV metrics collection or discussing support of https://github.com/rmohr/ovirt-prometheus-bridge for collecting RHV metrics.

Version-Release number of selected component (if applicable):
Red Hat Virtualization 4.2.8

Additional info:

As per Red Hat documentation, Prometheus is used as an external alerting component. CloudForms integrates Prometheus alerts for use with OpenShift Container Platform.

Reference: https://access.redhat.com/documentation/en-us/red_hat_cloudforms/4.6/html/monitoring_alerts_and_reporting/integrating_prometheus_alerts
 
More information is required regarding support for Prometheus in RHV metrics collection.

Comment 2 Shirly Radco 2019-06-17 10:59:38 UTC
Will adding collectd write_prometheus out plugin,
that will display collectd metrics in the way Prometheus can scrap them,
be sufficient for customer?

Comment 6 Jean-Louis Dupond 2020-09-16 11:48:07 UTC
Any update on this?

As we see Prometheus is getting more and more the industry standard for metrics, it would be great to be able to hook in Prometheus into oVirt for its metrics.
The Engine should provide some /metrics endpoint so metrics can be scraped from it.

Comment 8 Jean-Louis Dupond 2020-10-12 12:09:46 UTC
Created attachment 1720949 [details]
sql_exporter config

I found a (temporary) solution that uses the DHW PostgreSQL data to generate Prometheus metrics that can be scraped.

It uses https://github.com/free/sql_exporter with the config in attachment.

All it needs is some query optimisation, and it works quite well then!

Comment 10 Sandro Bonazzola 2022-03-29 16:16:40 UTC
We are past 4.5.0 feature freeze, please re-target.

Comment 11 Michal Skrivanek 2022-04-08 16:28:20 UTC
no update for a long time, didn't make it for 4.5, workaround in comment #8 looks...decent enough, closing

Comment 12 Red Hat Bugzilla 2023-09-15 00:15:46 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days