From the course: Kubernetes: Monitoring with Prometheus

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Generating application-driven alerts

Generating application-driven alerts - Kubernetes Tutorial

From the course: Kubernetes: Monitoring with Prometheus

Start my 1-month free trial

Generating application-driven alerts

- One of the key things that we want to do with alerts is actually trigger alerts based on an event that happens from within our application. And the way we do this is by actually creating a search expression that we can use to find what those issues might be. So again, we're gonna do an LS in our directory here, and we see that we have an alert file. If we more this file, more zero six underscore zero two tab, we see that similar to the alert that we created in the previous module, here we have a slightly more advanced alert. And that we actually have an expression that isn't just on. Instead, we are looking at the sum of our demo API requests in progress number and we are looking for something where that summation of all those results is greater than three. I'm actually going to go ahead and copy this expression, copy, and I'm going to pop into the Prometheus user interface here. And we're gonna go into the expression search, and we're going to paste in that expression, go ahead and…

Contents