examples/grafana/README.md
This example creates a custom Grafana instance preconfigured to gather Prometheus openshift metrics. It uses "OAuth" token to login openshift Prometheus.
Note: make sure to have openshift prometheus deployed (possibly, with node exporter). (https://github.com/openshift/origin/tree/main/examples/prometheus)
./setup-grafana.sh -n <any_datasorce_name> -a -e
for more info ./setup-grafana.sh -h
Note: when using oauth make sure your user has permission to browse grafana.
htpasswd -c /etc/origin/master/htpasswd gfadminsed -ie 's|AllowAllPasswordIdentityProvider|HTPasswdPasswordIdentityProvider\n file: /etc/origin/master/htpasswd|' /etc/origin/master/master-config.yaml
oc adm policy add-cluster-role-to-user cluster-reader gfadminsystemctl restart atomic-openshift-master-api.serviceoc get routeto build standalone docker instance see https://github.com/mrsiano/grafana-ocp