Skip to content

OpenShift Monitoring Grafana Dashboard

Tutorial to use custom Grafana Dashboard to explore OpenShift metrics from a Prometheus datasource.

This guide will use a Prometheus endpoint from an OpenShift CI job, exploring the exported Prometheus database from a OpenShift/Prow CI job using the Prometheus API exposed by PromeCIeus.

Steps to use custom grafana:

1) Restore the Prometheus datasource from a CI execution

  • Find the Prow job
  • Click in the lens "Debug Tools", then PromeCIeus
  • Paste the Job URL
  • Click in Generate to restore the the Prometheus database to an instance
  • Copy the URL (without path /graph) for later

2) Deploy Grafana Instance using PromeCIeus as Datasource

  • Create the Grafana Instance (skip if you already have one)

See also Grafana Container: https://grafana.com/docs/grafana/latest/setup-grafana/installation/docker/ https://hub.docker.com/r/grafana/grafana

podman run -d --name=grafana -p 3000:3000 grafana/grafana

Example:

OpenShift Dashboard