Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×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.
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:
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.