# What this PR does - Use Grafana Scenes to add Insights as a separate page in OnCall - Add an option to run Prometheus instance via helm so that Prometheus Exporter feature can be used easily without the need of setting up Prometheus separately ## Which issue(s) this PR fixes https://github.com/grafana/oncall-private/issues/2382 ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required) |
||
|---|---|---|
| .. | ||
| oncall | ||
| cr.yaml | ||
| ct.yaml | ||
| kind.yml | ||
| local_image.yml | ||
| README.md | ||
| simple.yml | ||
How to run the chart locally
-
Create the cluster with kind
Make sure ports 30001, 30002 (Grafana, optional) and 30003 (detached integrations server, optional) are free on your machine
kind create cluster --image kindest/node:v1.24.7 --config kind.yml -
(Optional) Build oncall image locally and load it to kind cluster
docker build ../engine -t oncall/engine:latest --target dev kind load docker-image oncall/engine:latestAlso make sure to add the following lines to your
simple.yml(you may also need to enabledevMode):image: repository: oncall/engine tag: latest pullPolicy: IfNotPresent oncall: devMode: trueAlternatively you can also pass an extra
--values ./local_image.ymlin the command below. -
Install the helm chart
helm install helm-testing \ --wait \ --values ./simple.yml \ ./oncall -
Get credentials
echo "\n\nOpen Grafana on localhost:30002 with credentials - user: admin, password: $(kubectl get secret --namespace default helm-testing-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo)" echo "Open Plugins -> Grafana OnCall -> fill form: backend url: http://host.docker.internal:30001" -
Clean up If you happen to
helm uninstall helm-testingbe sure to delete all the Persistent Volume Claims, as Postgres stores the auto-generated password on disk, and the nexthelm installwill fail.kubectl delete pvc --all kubectl delete pv --allThis, of course, will delete all the PVs and PVCs also :-)
kind delete cluster