---
description: >-
  When your app encounters an error, does it affect your graphs? With a Sentry
  webhook add-on, you can pinpoint your Sentry events in time to see if they
  coincide with changes in your metrics.
---

# Sentry

### How to set up a Sentry webhook

The webhook provided by Hosted Graphite can be used in Sentry as an alerting endpoint. To add Sentry alert information to Hosted Graphite as annotations, follow these instructions:

* Navigate to the Add-ons section of your Hosted Graphite account and copy your Sentry webhook location by clicking the ‘Copy’ button and follow the mouseover directions

<figure><img src="https://495119770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZtHmoGZNsmARIViZEdbz%2Fuploads%2FVKuHsfR1apKD52ttZiQX%2Fsentry-webhook-configuration.png?alt=media&#x26;token=2316df5d-ae77-4710-a51d-c9e443d88051" alt=""><figcaption><p>Sentry webhook</p></figcaption></figure>

#### Adding an Alerting Endpoint (in your Sentry account)

* Browse to your Sentry account, visit ‘Project Settings’ section, and click ‘All Integrations’
* Scroll down to ‘WebHooks’ and make sure the box is checked and save changes if necessary.
* Browse to the Alerts settings
* Scroll down, and add the Hosted Graphite Sentry webhook location to the field and save your changes.
* Scroll back up and either add or edit an alert Rule that corresponds to the Events you want to send to Hosted Graphite. Only alerts you send will appear on your graphs, so choose triggers and intervals that make sense for your use case.
* Ensure the notification is being sent through WebHooks. (You can send it to other services too, if you’d like.)

You’ve now saved a Hosted Graphite webhook for your alerting endpoint and assigned it to an alert. Now, once you’ve triggered some alerts, you can plot them on your graphs.

#### To View Sentry Annotations in Your Dashboards

* Browse to your Hosted Graphite graph and open the Annotations dialog
* Create and name a new annotation, and query on any tag to see your Sentry alerts

<figure><img src="https://495119770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZtHmoGZNsmARIViZEdbz%2Fuploads%2FiHoNQgvIy02330cFUoFs%2Fsentry-annotation.png?alt=media&#x26;token=a827d742-809c-47ce-a736-08654d329272" alt=""><figcaption><p>Create annotation</p></figcaption></figure>

**NOTE**: Sentry tags are sent as key:value pairs, but Hosted Graphite annotations are a series of strings. If your events are tagged with (room: "356B"), you’ll be able to query it using room=356B. By default we store the project slug, server name, error level, and the word “sentry” so you can quickly filter annotations for your dashboards.
