Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

wkulhanek/docker-openshift-grafana

Repository files navigation

Grafana Docker Image for use with Red Hat OpenShift

This repository builds a docker image for use with Red Hat OpenShift taking into account security considerations for running on OpenShift - e.g. not running under the root user.

  1. To build:

    docker build . -t wkulhanek/grafana:latest
    docker push wkulhanek/grafana:latest

    The repository includes an OpenShift Template to run Grafana with persistent storage.

  2. To deploy:

    oc new-project grafana --display-name="Monitoring - Grafana Dashboards"
    oc new-app -f grafana -p VOLUME_CAPACITY=4Gi
    • Log into Grafana using the Route provided in the Template and using default account admin with password admin (maybe it would be a good idea to change the password after this…​).

  3. Grafana Data Source

    • The Grafana template automatically provisions a Prometheus data source DS-Prometheus which connects to http://prometheus:9090 via proxy connection.

    • This works if there is a Prometheus (called prometheus) in the same project as Grafana. If this is not the case it is necessary to edit the datasource to point to another location.

  4. Grafana Dashboard