This Promise provides Observability-as-a-Service by deploying kube-prometheus. The Promise has 2 field .spec.namespace
,
which is the namespace the Grafana and Prometheus installation and .spec.env
which can be dev
or prod
.
To install, run the following command while targeting your Platform cluster:
kubectl apply -f https://raw.githubusercontent.com/syntasso/promise-observability/main/promise.yaml
This will install the Prometheus Operator into the clusters. To verify it is installed, run the following command while targeting a worker cluster:
kubectl get deployment prometheus-operator
NAME READY UP-TO-DATE AVAILABLE AGE
prometheus-operator 1/1 1 1 4h30m
To get an instance of Grafana and Prometheus make a resource request (dev by default), run the following command while targeting your Platform cluster:
kubectl apply -f https://raw.githubusercontent.com/syntasso/promise-observability/main/resource-request.yaml
This will create an instance of Promethues and Grafana on the targeted worker cluster. This may take a few minutes.
Prometheus and Grafana dashboards can be accessed quickly using kubectl port-forward
. The
following commands should be run while targeting your worker cluster.
$ kubectl --namespace monitoring port-forward svc/prometheus-k8s 9090
Then access via http://localhost:9090
$ kubectl --namespace monitoring port-forward svc/grafana 3000
Then access via http://localhost:3000 and use the default grafana user:password of admin:admin
.
For development see README.md
We are always looking for ways to improve Kratix and the Marketplace. If you run into issues or have ideas for us, please let us know. Feel free to open an issue or put time on our calendar. We'd love to hear from you.