In order to evaluate the quality gates, we have to set up monitoring to provide the needed data.
Checkout the needed files.
If you have not yet onboarded the carts service, please execute the following commands to receive the needed files:
$ cd ~ $ git clone https://github.com/keptn/examples.git $ cd ~/examples/monitoring/prometheus
If you already have onboarded the carts service, navigate to the directory
In this directory, you will find a script called
deployPrometheus.sh. This script will deploy Prometheus in the namespace
monitoring and set up scrape job configurations for monitoring the carts service in the
production namespace. Execute that script by calling:
$ ./deployPrometheus.sh 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:
First, enable port-forwarding for the
kubectl port-forward svc/prometheus-service 8080 -n monitoring
Afterwards, 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.