|
|
|
@ -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 - |
|
|
|
``` |
|
|
|
|
|
|
|
|