O'Reilly logo

The DevOps 2.2 Toolkit by Viktor Farcic

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Querying metrics from instrumented services

Let's open the Prometheus graph screen and explore different ways to query metrics scraped from the go-demo_main service.

open "http://$(docker-machine ip swarm-1)/monitor/graph" 

Please click the Graph tab, enter the query that follows, and click the Execute button

http_server_resp_time_sum / http_server_resp_time_count

We divided the summary of response times with the count of the requests. You'll notice that the output graph shows that the average value is close to zero. Feel free to hover over one of the lines and observe that the values are only a few milliseconds. The go-demo_main service pings itself periodically and the responses are very fast.

We should generate some slower responses since ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required