Add instrumentation to track Total monthly (28D) pipelines in Gitlab repositories
Request
See Request: https://gitlab.com/gitlab-com/sales-team/field-operations/customer-success-operations/-/issues/2343
Add instrumentation for an equivalent, event-based monthly (28D) metric for counts.ci_internal_pipelines
that can measure "Total monthly (28D) pipelines in Gitlab repositories" as that does not exist today.
Intended Use
This metric will allow us to normalize _scans
metrics which will directly be related to a customer-facing DevSecOps adoption score. For reference - https://gitlab.com/gitlab-com/sales-team/field-operations/customer-success-operations/-/issues/1950#note_1165310661
- Is this all project types (Private, internal, public)
- Yes to all types!
- Is this all projects or does it exclude the
Gitlab
namespace?- All projects, existing filtering for GitLab namespaces will work here.
- Is this all pipelines regardless of status? If not which statuses should we count?
- Existing statuses, this is migrating existing counting and adding a count for a month.
Proposal
Add a new metric definition via command line helper with the details above. Metric instrumentation should be handled automatically.
Edited by Max Fan