Skip to content

Add metrics for compliance group

Marcos Rocha requested to merge add-metrics-compliance-group into master

What does this MR do and why?

Add metrics for compliance group

This MR add metrics for the compliance's group pages

Related to #416918 (closed)

How to set up and validate locally

  1. Visit one of the pages:

Project level

  • Secure > Audit Events

Group level

  • Secure > Audit Events
  • Secure > Compliance center
  1. In the rails console, check for a non-zero counter value for the metric:
Gitlab::UsageDataCounters::HLLRedisCounter.unique_events(event_names: ['g_compliance_dashboard', 'users_visiting_audit_events'], start_date: Date.current.beginning_of_week, end_date: Date.current.next_week)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Marcos Rocha

Merge request reports