Add ability to use any filter in DistinctCountProjectsWithExpirationPolicyMetric instrumentation class
requested to merge mwaw/enable_additional_filters_distinct_count_projects_with_expiration_policy_metric into master
What does this MR do and why?
There is family of 19 metrics (see in description of #339315 (closed)) that could use DistinctCountProjectsWithExpirationPolicyMetric
but needs to pass different filters. This MR modify DistinctCountProjectsWithExpirationPolicyMetric
to make it more flexible and accept filtering result by any attribute
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
This is backstage change, so the best way is to play around with spec file spec/lib/gitlab/usage/metrics/instrumentations/distinct_count_projects_with_expiration_policy_metric_spec.rb
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.