gitserver: add metric for repo count
Created by: danieldides
Add in metric to show total number of non-deleted git repos.
Co-authored-by: Michael Lin [email protected]
Test plan
-
sg start
andsg start monitoring
- Query grafana
- Verify the metric value matches the result of this query:
SELECT COUNT(*) FROM repo WHERE deleted_at IS NULL;