Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Integration with Betterstack

Cristiano Sticca October 21, 2024

Hello community,

I need to set up an integration within Opsgenie and Betterstack. In particular, I have to create an automation that create automatically an Incident in Betterstack when a manual Incident is created using Opsgenie.

I can use custom code that will call Betterstack APIs to create incident but I can't find a way to trigger this code from Opsgenie (I've found webhook integration bit didn't find how to set up the URL).

I also tried Zapier but didn't find a way to put Opsgenie as the starting trigger as you can see in the attached screenshot.

Screenshot 2024-10-21 alle 21.05.43.png

 

I can't find documentation useful. 

Could you help me please?

1 answer

1 vote
Mubeen Mohammed
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 22, 2024

Hello @Cristiano Sticca 

Thank you for contacting the Atlassian Community!

Considering there is no native integration option is available with Opsgenie-Betterstack it will not be possible to setup a outgoing action directly from Opsgenie.

To set up an integration between Opsgenie and Betterstack where a manual incident in Opsgenie automatically triggers the creation of an incident in Betterstack, you can use a combination of Opsgenie's webhooks and a serverless function or a small application that acts as a bridge to Betterstack's API in the cases where Betterstack don't have the webhook option.

For specific steps:

  • You need an endpoint URL where Opsgenie can send the webhook requests. This URL will point to your serverless function or application that processes the incoming data.

  • Specify the conditions under which the webhook should be triggered. You’ll need a small application or serverless function that will receive Opsgenie webhooks and interact with the Betterstack API.
  • Parse the incoming JSON data from Opsgenie. Look for the incident creation events or any specific data you need. Use Betterstack’s API to create an incident. Refer to Betterstack’s API documentation for authentication and endpoint details.

By following these steps, you should be able to set up an automatic integration between Opsgenie and Betterstack that creates incidents in Betterstack based on manual incident creations in Opsgenie.

I understand this is not a straightforward approach from Opsgenie or Betterstack and the limitations are due to the product design.

I hope the details provided are helpful. Thank you for your time and consideration.

 

Regards

Mubeen Mohammed

Cloud Support Engineer

 

Cristiano Sticca October 23, 2024

Hi @Mubeen Mohammed ,

thanks for your reply. It sounds good. 

Could you please help me in find the documentation about creating a webhook on Opsgenie because I found it in my account (Integrations Settings) but when I try to configure a new webhook I didn't find the field on which to put my url.

Thanks a lot.

Bye,

Cristiano

 

Mubeen Mohammed
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 24, 2024

Hello @Cristiano Sticca 

Here is the documentation for the Webhook Integration setup in Opsgenie.

Once the integration is created for the outgoing rules to work you need to edit the settings and enable the "Authenticate with a Webhook account" option in the settings as shown in the screenshots below.

Screenshot 2024-10-24 at 1.46.22 PM.png

Screenshot 2024-10-24 at 1.47.13 PM.png

I hope the details provided are helpful. Thank you for your time and consideration. 

Regards

Mubeen Mohammed

Cloud Support Engineer

Like Steffen Opel _Utoolity_ likes this
Cristiano Sticca October 24, 2024

thanks @Mubeen Mohammed I'll try! 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events