Hi,
I'd like to monitor a PostgreSQL table that contains print output jobs. With a SELECT COUNT (*) from blabla WHERE status = 'ERROR' GROUP by queue;
SQL script I get a result as following:
QueueName | Number of erroneous jobs |
---|---|
Queue1 | 1 |
Queue2 | 4 |
Queue3 | 7 |
Queue4 | 301 |
Queue5 | 7 |
Of course at each run of the script the result will be different: Either the number of erroneous jobs will change and also the affected queues could change if e.g. erroneous jobs will be repeated or deleted.
Of course I could simply monitor the total number of erroneous jobs or create for each queue an own sensor. But that would be not very smart. Is there a possibility to *dynamically* track and visualize the result for the queues depending on what queue has erroneous jobs?
Thanks and kind regards Florian
Add comment