Add policy limit metrics to Internal Events tracking

Why are we doing this work

We need to add Internal Events tracking to understand the impact of #510897 (closed) on self-managed installations:

  • maximum SEP action count per policy, across the whole instance
  • the value of scan_execution_policies_action_limit
  • whether the maximum action count exceeds the limit

Relevant links

#510897 (comment 2556910112)

Non-functional requirements

  • Documentation:
  • Feature flag:
  • Performance:
  • Testing:

Implementation plan

https://docs.gitlab.com/development/internal_analytics/service_ping/

Verification steps

TBD

Edited by Dominic Bauer