• Z.J. van de Weg's avatar
    Add ability to query row counts · e5bda2a5
    Z.J. van de Weg authored
    This commit allows for queries which only request for row counts to be
    gathered and written for Prometheus to gather.
    At this time 3 simple queries are added which monitor how many projects
    are orphaned and/or pending_delete, though the structure of the code
    allows for easily adding more queries which do
    SELECT COUNT(<whatever>) FROM <whatever>;
row_count.rb 1.79 KB