Sentry Integration
Connect Sentry to bring your Sentry usage volumes into Cloud ex Machina.
| Data | Sentry API | Token scope |
|---|---|---|
| Event volumes per category, outcome and project | stats_v2 | org:read |
| Projects, quotas, spike protection, inbound filters and sampling | Projects | project:read |
| Teams and members | Teams, members | team:read, member:read |
| Alert rules | Alerts | alerts:read |
The Sentry API gives usage volumes, for example accepted and dropped events. It gives no spend and no invoices.
Prerequisites
- Cloud ex Machina Admin access.
- A member of the Sentry organization who can see its usage stats. A Manager or Owner sees the stats of the full organization.
Step 1: Find your Sentry region
- Open your organization settings in Sentry.
- Find the data storage location of the organization.
| Data storage location | Hostname to select |
|---|---|
| United States | us.sentry.io |
| European Union | de.sentry.io |
If you are not sure, select sentry.io.
Step 2: Create a personal token
Token type
Use a personal token. It starts with sntryu_. An organization token starts with sntrys_. It does not work for this connection.
- In Sentry, open the account menu at the top left.
- Click User settings > Personal Tokens.
- Click Create New Token and name it
Cloud ex Machina. - Give the token the scopes
org:read,project:read,team:read,member:readandalerts:read. Do not give it other scopes. - Copy the token.
The token stops working if its owner leaves the Sentry organization.
Spike protection
Sentry lets the project:read scope turn spike protection on and off. Sentry has no narrower scope for project settings.
Step 3: Add the connection in Cloud ex Machina
- In the sidebar, click Integrations.
- Find Sentry and click Sign in. If the integration already has a connection, the button is Add connection.
- Fill in:
- Hostname: the hostname from Step 1.
- Auth Token: the token from Step 2.
- Submit the form. Cloud ex Machina saves the connection.
Remove a connection
- Click the connection row under the Sentry card.
- Click Disconnect.
- Delete the token in Sentry.
Next Steps
- See all available integrations in the Integrations Overview.