GitLab Omnibus packages a integrated Prometheus exporter. This exporter contains basic GitLab metrics but lacks detailed metrics. This was also mentioned in T347038 for additional gitlab-runner metrics.
Beside more gitlab-runner metrics (T347038) we identified more use cases like alerting for project sizes or Trusted Runner config changes (T353271).
So we should evaluate how we can create our own custom exporter which exports a small number of roughly 5-10 metrics. We can start with:
- Protection flag of runners (ref_protected or unprotected)
- size of projects (repo, artifacts, packages)
It's likely that we find additional use-cases or events which should alert. So some kind of extendible architecture would be good.