For this exercise, we use Infracost to measure the cost of a deployment.
The flow is:
Install and run the Job Executor Service
to execute Infracost in a container as a Kubernetes job that is orchestrated by Keptn
Execute a Python script that runs Infracost
and pushes Infracost metrics to a backend. We use Prometheus.
Add an evaluation sequence to the shipyard.
This sequence is triggered after the Python script finishes.
It executes a quality gate evaluation that checks the deployment,
based on the Infracost metrics it receives from Prometheus