O'Reilly logo

Django Project Blueprints by Asad Jibran Ahmed

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

Alerts

Now that we have a basic status page up and running, let's talk about allowing the user to configure some alert conditions. For now, we will inform the user of any alert condition by showing that node's information in red color on the status page.

First, we need to figure out what kind of alerts we want our users to set. From there, we can figure out the technical details. So, let's think about it. Given that the data types we are recording all have numeric values, it makes sense that the user should be able to set thresholds. They can, for instance, set an alert if the system load of any node goes above 1.0 or if the disk usage of a node goes above 80%.

Furthermore, maybe our users don't want to have the same alert conditions for each node. ...

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