Sentry integration issues
Asked by David de la Pena:

I am trying to trigger an opsgenie alert when a Sentry Error Threshold alert happens.

I cannot see this in the options in the Sentry Alert configuration to send to OpsGenie

Any pointers much appreciated!


Answers:
author: Nick H
body: Hi [@David de la Pena](/t5/user/viewprofilepage/user-id/3493051) ,

Our [Sentry documentation](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-sentry/#Configuration-in-Sentry) is fairly straight forward when it comes to configuring the Sentry side / how to create an Opsgenie alert.

It doesn't cover specific ways to trigger the integration when certain alerts such as "error-threshold" alerts occur. I'm personally not a Sentry expert - nor have an instance to test - so you may want to reach out to Sentry support for assistance here.

If there is not an option in Sentry to filter on what *should* create an Opsgenie alert, you could send all alerts to Opsgenie. Then under the [Advanced tab](https://support.atlassian.com/opsgenie/docs/use-advanced-integration-settings/) of the integration, determine what should create alerts vs. what should not:

![sentry1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/230672iAD435D84ABF460A0/image-size/large?v=v2&px=999 "sentry1.jpg")

Note the Advanced tab is only available on the Standard and Enterprise (or the JSM/O Premium and Enterprise) plans.

comments: author: Shay Kremer
body: Hi Nick,  
The issue is within Sentry that the option for choosing opsgenie isn't available, after configuring everything the only options are slack, email and linear.  
![WhatsApp Image 2023-02-02 at 17.21.56.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/237920i407D58CBBABA70ED/image-size/large?v=v2&px=999 "WhatsApp Image 2023-02-02 at 17.21.56.jpeg")  
You can reproduce this issue by trying to build sentry alert of Crash Free User Rate dropped.


author: Muhammad Shakeeb
body: Hi,

Yes that happens because you didn't activate the Opsgenie.  

Please go to settings \> Search for opsgenie \> select it for your desired project \> Click there on **Enable Plugin** .  

I have checked it at my end too and it works after enabling it and you can see the opsgenie in the drop down list where you saw email/slack so on.  

<br />

![Screenshot 2023-02-08 at 12.56.32.png](https://community.atlassian.com/t5/image/serverpage/image-id/238981iED24DC56E2033734/image-size/large?v=v2&px=999 "Screenshot 2023-02-08 at 12.56.32.png")  

<br />


author: Mohammed Ashfaq
body: Hello Muhammed Shakeeb/Nick,   

Apparently, the solution mentioned only works for "Issue Alerts" in Sentry and not for "Metric Alerts" or other kinds of alerts. This has been confirmed by Sentry support that they do not support OpsGenie and consider it as Legacy integration. However, there is a workaround that could be possible, and I need help with that.   

In Sentry, we can go to Setting \> Developer Settings \> Internal Integration and set up OpsGenie integration. But it does not have option to provide API Key. Could you help in setting up the following way of integration? How can we add auth token within the URL as it does provide option to provide API token or headers.   

<br />

Note: I have tried setting it up as a direct integration and enabled the plugin, but it did not work.   

![Screenshot 2023-07-06 at 16.19.16.png](https://community.atlassian.com/t5/image/serverpage/image-id/267186i2126CA56DEB3B402/image-size/large?v=v2&px=999 "Screenshot 2023-07-06 at 16.19.16.png")


Tags: cloud