In order to evaluate the quality gates, we have to set up monitoring to provide the needed data.
Checkout the needed files.
git clone --branch 0.3.0 https://github.com/keptn/examples.git --single-branch cd ./examples/monitoring/prometheus
In this directory, you will find scripts to deploy Prometheus in your cluster, depending on which platform you are using. These scripts will deploy Prometheus in the namespace
monitoring and set up scrape job configurations for monitoring the carts service in the
For GKE and AKS, you can deploy Prometheus by calling:
For OpenShift, please execute:
namespace "monitoring" created configmap "prometheus-server-conf" created clusterrole.rbac.authorization.k8s.io "prometheus" created clusterrolebinding.rbac.authorization.k8s.io "prometheus" created deployment.extensions "prometheus-deployment" created service "prometheus-service" created
To verify the Prometheus installation, you can browse to the Prometheus web interface:
kubectl port-forward svc/prometheus-service 8080 -n monitoring
Open the URL localhost:8080/targets in your browser. Here you should see three targets for the carts service:
Please note that if you have not onboarded the carts service yet, the Prometheus dashboard will report down in the state column.