Installing Grafana

Installing Grafana is very easy, as we can directly use its Docker image, which is available in the Docker.io referencing it on the OpenShift command given in the following steps:

  1. First of all, we need to deploy Grafana on OpenShift by issuing the following commands:
./oc new-app grafana/grafana  --> Found Docker image d0454da (3 days old) from Docker Hub for "grafana/grafana"

An image stream tag will be created called grafana:latest, which will track this image. This image will be deployed in the deployment config grafana. Port 3000/tcp will be load-balanced by the grafana service.

  1. Other containers can access this service through the grafana host name:
--> Creating resources ...imagestream.image.openshift.io "grafana" ...

Get Hands-On Cloud-Native Microservices with Jakarta EE now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.