Bug 1468251

Summary: [RFE][TD] Create and use Prometheus Metrics Ruby client
Product: Red Hat CloudForms Management Engine Reporter: Yaacov Zamir <yzamir>
Component: C&U Capacity and UtilizationAssignee: Yaacov Zamir <yzamir>
Status: CLOSED CURRENTRELEASE QA Contact: Shalom Naim <snaim>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: fsimonce, jhardy, mtayer, obarenbo, zgalor
Target Milestone: GAKeywords: FutureFeature, TestOnly
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: container
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1530736 (view as bug list) Environment:
Last Closed: 2018-06-21 20:40:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management Target Upstream Version:
Embargoed:
Bug Depends On: 1461969    
Bug Blocks: 1530736    

Description Yaacov Zamir 2017-07-06 13:07:07 UTC
Description of problem:

We use faraday gem to collect metrics and buffered-allerts from prometheus

We should use a prometheus specialized gem to collect metrics and buffered-allerts from prometheus tsdb.

Additional info:

such a gem does not exist at this time, the prometheus team agread to look at a gem we make and consider adopting it.

Comment 3 Yaacov Zamir 2017-09-04 08:12:35 UTC
created a gem:
https://github.com/yaacov/prometheus_api_client_ruby

Comment 4 Yaacov Zamir 2017-11-26 13:27:10 UTC
submitted upstream:
https://github.com/ManageIQ/manageiq-providers-kubernetes/pull/132

Comment 5 Yaacov Zamir 2017-11-26 14:04:46 UTC
the gem for Prometheus Metrics Ruby client is in the Prometheus namespace in github:
https://github.com/prometheus/prometheus_api_client_ruby

we use it in:
https://github.com/ManageIQ/manageiq-providers-kubernetes/pull/132

Comment 6 Yaacov Zamir 2017-12-27 12:57:38 UTC
submitted upstream:
https://github.com/ManageIQ/manageiq-providers-kubernetes/pull/195

Comment 7 Yaacov Zamir 2017-12-28 10:41:07 UTC
merged upstream:
https://github.com/ManageIQ/manageiq-providers-kubernetes/pull/195