Exploring Prometheus Metrics and Writing Rollout Queries

Learn how to explore Prometheus metrics and write rollout queries.

Generate some traffic

We’re about to deploy Prometheus, but before we do, let’s start generating some traffic so that there are metrics we can explore.

First session

We’ll open a new terminal and create an infinite loop that will send requests to the devops-toolkit app. That way, we’ll have a constant stream of metrics related to requests and responses.

Let’s start by outputting the Istio Gateway host.

echo $ISTIO_HOST

Please copy the output. We’ll need it soon.

Second session

Open a second terminal session.

Now we can redeclare the ISTIO_HOST variable in the new terminal session. We’ll use it for constructing the address to which we’ll be sending a stream of requests.

Note: Please replace [...] with the output of the ISTIO_HOST variable you copied from the first terminal session.

export ISTIO_HOST=[...]

Now we’re ready to execute the loop.

Get hands-on with 1400+ tech skills courses.