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
- In your gitlab project:
config/gitlab.ymlmake sure you haveprometheusandsnowplow_microset to false and using localhost instead of your alias hostname (ie. gdk.test -> localhost) - In gitlab-development-kit:
gdk.ymlmake sure yoursnowplow_microis also set to false - 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
- Enable FF:
validity_checks_security_finding_statushttp://gdk.test:3000/rails/features/validity_checks_security_finding_status - Enable FF:
validity_checksvalidity_checks` http://gdk.test:3000/rails/features/validity_checks - Follow steps to
create a deploy token - Edit file within that project and add the newly made token, then commit it so that
UpdateTokenStatusServiceruns - 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