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. ...

Get Django Project Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.