From 3120bc6c5bdb44efcc7580c221397f3833044b45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Fri, 8 Dec 2017 16:48:55 +0100 Subject: [PATCH] improve doc --- grafana/README.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/grafana/README.md b/grafana/README.md index 8807b4f..b7baca3 100644 --- a/grafana/README.md +++ b/grafana/README.md @@ -1,17 +1,26 @@ -# grafana +# Grafana and Prometheus for OpenShift 3.7 ## Description -## Build in OpenShift +Grafana is a nice webui showing monitoring data that comes from various sources. +One of those sources is Prometheus. + +This project proposes ready-to-use templates to deploy Prometheus and Grafana +on OpenShift. + +## Deployment + +### Deploy Grafana and Prometheus ``` -oc new-build https://github.com/nmasse-itix/OpenShift-Docker-Images.git --context-dir grafana --name grafana --to grafana +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-base.yaml |oc create -f - ``` -## Deploy in OpenShift +### Deploy only Grafana with its vanilla configuration ``` -oc new-app https://github.com/nmasse-itix/OpenShift-Docker-Images.git --context-dir grafana --name grafana -oc volume dc grafana --add --overwrite --name=grafana-volume-0 -t pvc --claim-size=512Mi --claim-name=grafana-data --mount-path=/var/lib/grafana/ +oc process -f grafana-nodatasource.yaml |oc create -f - +oc process -f grafana-base.yaml |oc create -f - ``` -