[go: up one dir, main page]

Draft: Track number of tokens sent to UpdateTokenStatusService

What does this MR do and why?

Track number of tokens sent to UpdateTokenStatusService

Track the type of token and its corresponding status found by UpdateTokenStatusService

Track how long it takes UpdateTokenStatusService to complete

Changelog: added EE: true

References

Telemetry - track validity checks usage (#519785 - closed)

Screenshots or screen recordings

Before After

How to set up and validate locally

  1. In your gitlab project: config/gitlab.yml make sure you have prometheus and snowplow_micro set to false and using localhost instead of your alias hostname (ie. gdk.test -> localhost)
  2. In gitlab-development-kit: gdk.yml make sure your snowplow_micro is also set to false
  3. In your terminal run: rails runner scripts/internal_events/monitor.rb update_token_status_service_invoked token_status_processing_metrics finding_token_status_detected
  • this is where the events will appear
  1. Enable FF: validity_checks_security_finding_status http://gdk.test:3000/rails/features/validity_checks_security_finding_status
  2. Enable FF: validity_checks validity_checks` http://gdk.test:3000/rails/features/validity_checks
  3. Follow steps to create a deploy token
  4. Edit file within that project and add the newly made token, then commit it so that UpdateTokenStatusService runs
  5. Check the events

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Radu Birsan

Merge request reports

Loading