I have a service that gathers insights about other services like metrics, health check data, etc. I would like to publish this data to Compass for each component. I read this can be done by using the GraphQL API but I'd like to see more documentation and examples.
Thanks!
Hi @emiliano.pedroza and welcome to the Atlassian Community!
There are meanwhile two ways to ingest metrics and events into Compass:
The Compass REST API has recently been added as a slightly more lightweight and/or convenient starting point, still needs a tiny bit of GraphQL though - refer Send events using REST API for details.
The more flexible and comprehensive approach is to write an app for the Atlassian Forge platform that Compass itself is built upon. The team also provides the GraphQL API toolkit, which wraps and exposes the underlying GraphQL API via JavaScript/TypeScript methods for ease of use.
There are several Compass example apps to get started, including the Compass metrics and events ingestor app that "Uses the dataProvider module and webtriggers to set up and ingest metrics and events on a Compass component".
The Compass team also curates their own compass-examples repository, including a Compass Metrics and Events Statuspage Example (Custom UI).
Also linked there is the considerably more comprehensive yet also more complex official GitLab app for Compass app that Atlassian is refreshingly making available as OSS.
Cheers,
Steffen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.