Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting metrics to components

Michael Akinde
Contributor
August 19, 2025

Is there a way to connect metrics to components programmatically? For example, by setting metrics that one wants per type of component?

Currently, the only way seems to be clickops, manually on a component-by-component basis. Considering that one will often work with 100s of components, and a large degree of automation, this does not seem an ideal way to handle this.

1 answer

1 accepted

2 votes
Answer accepted
Enrique Serrano Valle
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 19, 2025

Hi, @Michael Akinde !

Yes, there are several programmatic ways to connect metrics to components in Compass!

While manual UI configuration is one option, Compass actually provides multiple automated approaches, based on several of its existing integrations, such as:

  • Connecting Jira Service Management to Compass automatically creates MTTR and Incident Count metric sources.
  • Webhooks from tools like GitLab, Bitbucket, or SonarQube can be configured with Compass incoming webhooks that will automatically initialize metric sources for matching components
  • Integrations with your SCM enable added repository links and received build and deployment events to automatically trigger the creation of relevant metric sources (like Deployment Frequency, Build Success Rate, etc.)

For other metrics, apart from manual integration via the UI, you also mentioned having automation in place, and in these situations, metric attachment can also be handled via the Compass GraphQL API as part of the provisioning or CI/CD jobs of new components. There are examples of such queries available in the Compass snippet examples repository.

Michael Akinde
Contributor
August 19, 2025

Thanks. It would be nice if the connection of a metric was also automatic when posting a metric through a script (currently, that does not seem to be the case), rather than having to script connections for every project. I wouldn't be pushing the metric, after all, if I did not intend for it to be used.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events