Custom event api and custom event with Jenkins sonar jira metrics integration on compass
Asked by AKandeepan:

1. Do we have direct integration with compass to fetch jenkins node,job,queue metrics on compass dashboard.  
2. Does compass provides feature to plot line, bar, pie charts based on custom data by sending the events from jenkins and sonar.  
3. Does compass provides metrics in build with PR , pipeline, deployment cycletime , time to approve, time to merge, time to review, time to create etc.. and dora metrics  
4. Does compass provides event api to send key value pair event data as json.  
5. Does compass provides feature to create single custom dashboard with all the required metrics in one page.  
6. what are all the limitation we have storing and visualizing the custom event data on compass  
7. Does compass support integration with sonar and feature code quality metrics.


Answers:
author: Mark Rekveld - Marvelution
body: Hi [@AKandeepan](/t5/user/viewprofilepage/user-id/5291698)

Just wanted to add to [@Vinicius](/t5/user/viewprofilepage/user-id/5049137) answers in that some of the integrations can be provided when using a combination of the [Jenkins Integration for Jira](https://marketplace.atlassian.com/apps/1211376/jenkins-integration-for-jira?hosting=cloud&tab=overview) in combination with the [Jenkins for Compass](https://marketplace.atlassian.com/apps/1234756/jenkins-for-compass?tab=overview&hosting=cloud) apps (Disclaimer I'm the developer of both apps, where the Compass app is new)

The Jira app support integrating Jenkins with JIra and will process all jobs and builds/deployments to display in Jira. And when a job is also configured as a Compass component, then all related events are also passed to Compass so it can process those events for the build and deployment related metrics.

No other metrics are yet collected by the integration, but if doable can be added.

Cheers,  
Mark


author: Vinicius
body: Hello, AKandeepan!  

Sorry for the delayed response. That being said, let's get into your questions:  

1. No direct integration at the moment, but events and metrics can be passed on using our API.
2. You can use custom data to fill in metrics and our available dashboards/graphs, but won't be able to build a custom one (like pie charts, etc)
3. Yes, some of these metrics are already pre-defined, but they still need to be connected to your metric sources. You can read more on Compass metrics here: <https://developer.atlassian.com/cloud/compass/components/available-predefined-metrics/>
4. Similarly to question 1, you can use our open API to get this data.
5. No custom dashboarding at the moment, but we do provide some views on the Team and Health pages.
6. We keep user data in the same way as we do for other Atlassian products: 1 month for free tenants, 1 year for standard and 2 years for premium. You can read more about it here: <https://support.atlassian.com/security-and-access-policies/docs/track-storage-and-move-data-across-products/>
7. Similarly to question 1, some integration can be achieved via API but no timeline for a direct integration at the moment.

<br />

API documentation: <https://developer.atlassian.com/cloud/compass/components/send-events-using-rest-api/>  

I hope this helps, let us know if you have more questions!