change-metrics / monocle

Monocle helps teams and individual to better organize daily duties and to detect anomalies in the way changes are produced and reviewed.
https://changemetrics.io
GNU Affero General Public License v3.0
372 stars 58 forks source link

Integrate with an external Prometheus data source #979

Open morucci opened 1 year ago

morucci commented 1 year ago

This story shares some idea about feasibility.

The general Idea is to display data results from a Prometheus query into a Monocle widget by having some part of a Monocle query that adapt the Prometheus query API call.

The need came from a discussion about how to Integrate Pelorus 1 metrics w/ the Monocle UI.

How this could work:

Some part of the Monocle query could be extracted to specialize the promQL query and the API call to the query or query_range endpoint. For instance:

morucci commented 1 year ago

@mpryc