Skip to Main Content
The DevOps 2.5 Toolkit
book

The DevOps 2.5 Toolkit

by Viktor Farcic
November 2019
Intermediate to advanced content levelIntermediate to advanced
322 pages
7h 3m
English
Packt Publishing
Content preview from The DevOps 2.5 Toolkit

Using internal metrics to debug potential issues

We'll re-send requests with slow responses again so that we get to the same point where we started this chapter.

 1  for i in {1..20}; do
 2      DELAY=$[ $RANDOM % 10000 ]
 3      curl "http://$GD5_ADDR/demo/hello?delay=$DELAY"
 4  done 5
 6  open "http://$PROM_ADDR/alerts"

We sent twenty requests that will result in responses with random duration (up to ten seconds). Further on, we opened Prometheus' alerts screen.

A while later, the AppTooSlow alert should fire (remember to refresh your screen), and we have a (simulated) problem that needs to be solved. Before we start panicking and do something hasty, we'll try to find the cause of the issue.

Please click the expression of the AppTooSlow alert.

We are ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The DevOps 2.2 Toolkit

The DevOps 2.2 Toolkit

Viktor Farcic

Publisher Resources

ISBN: 9781838647513Supplemental Content