Skip to content

Add Jira integrations metrics to Service Ping

Michał Wielich requested to merge michold-add-jira-metrics into master

What does this MR do and why?

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/389428

As a first step into having our current Jira metrics support SQL queries, we want to add new metrics that have that support - so that they can replace the old ones in the future.

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

  1. If you don't have any Jira integrations on local environment yet, you can
  2. Open the rails console
  3. Generate a new Service ping by running: sp = Gitlab::Usage::ServicePingReport.for(output: :all_metrics_values)
  4. Make sure that the new metrics are in the payload and return the count of jira integrations in your environment:
sp.dig(*('counts.projects_jira_cloud_deployment_type_active'.split('.')))
sp.dig(*('counts.projects_jira_server_deployment_type_active'.split('.')))

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 Michał Wielich

Merge request reports