Extend metrics with tasks & agents
Refs https://redmine.teklia.com/issues/7791
Closes #1798 (closed)
In the end I simplified the query to only count the tasks, as it will be the same usability to build alerts as counting processes.
Edited by Bastien Abadie