Browse Source

improve the doc

pull/1/head
Nicolas Massé 8 years ago
parent
commit
91624b0f9e
  1. 7
      grafana/README.md

7
grafana/README.md

@ -12,16 +12,19 @@ on OpenShift.
### Pre-requisites ### Pre-requisites
First, make sure the is a `rhel7` imagestream in the `openshift` namespace.
``` ```
oc import-image -n openshift rhel7 --from registry.access.redhat.com/rhel7:latest --confirm oc import-image -n openshift rhel7 --from registry.access.redhat.com/rhel7:latest --confirm
``` ```
Then, make sure you are cluster-admin on your OpenShift cluster.
### Deploy Grafana and Prometheus ### Deploy Grafana and Prometheus
``` ```
oc process -f grafana-prometheus-storage.yaml -p PVC_SIZE=1Gi |oc create -f - oc process -f grafana-prometheus-storage.yaml -p PVC_SIZE=1Gi |oc create -f -
oc process -f grafana-prometheus.yaml |oc create -f - oc process -f grafana-prometheus.yaml -p PROMETHEUS_ROUTE_HOSTNAME=prometheus.app.openshift.test -p ALERTS_ROUTE_HOSTNAME=alerts.app.openshift.test |oc create -f -
oc process -f grafana-base.yaml |oc create -f - oc process -f grafana-base.yaml -p GRAFANA_ROUTE_HOSTNAME=grafana.app.openshift.test |oc create -f -
``` ```
### Deploy only Grafana with its vanilla configuration ### Deploy only Grafana with its vanilla configuration

Loading…
Cancel
Save