Add Jira integrations metrics to Service Ping
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
- If you don't have any Jira integrations on local environment yet, you can
- Create a free Jira cloud account
- Configure it in gitlab as described here
- Open the rails console
- Generate a new Service ping by running:
sp = Gitlab::Usage::ServicePingReport.for(output: :all_metrics_values)
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Michał Wielich