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

How do I automatically post an incident when my website monitor detects downtime?

Johnny September 16, 2020

Hey Atlassian Statuspage community,

I'm trying to figure out how it would be possible to post an incident when my website monitor NewRelic detects a failure?

 

Any help would be appreciated!

 

Regards,

Johnny

2 answers

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2020

I have used https://support.atlassian.com/statuspage/docs/add-a-new-relic-metric/ to get metrics into Statuspage.

But I actually think you've answered your own question when you used the word "monitor" - I think https://support.atlassian.com/statuspage/docs/set-up-new-relic-alerts-parsing/ does what you want!

Johnny September 16, 2020

Hey Nic, thanks! This (https://support.atlassian.com/statuspage/docs/set-up-new-relic-alerts-parsing/) does half of what I want! Is there a way I could also make it automatically create a new incident?

Like Nic Brough -Adaptavist- likes this
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2020

Sorry, I missed the "full statuspage incident" part, I was too focussed on integration with NewRelic.

I don't believe you can do that with NewRelic off-the-shelf.  The reason I say that is the table 3/4 of the way down https://support.atlassian.com/statuspage/docs/know-when-to-automate-your-status-page/ under "Automating your status page using an integration" - NewRelic is not listed as being able to create incident.

I think the next section of the doc is what you want to think about - using the "Manage api".  It will need a bit of coding though - persuading NewRelic to send the data Statuspage wants for creating a new incident.

Like Johnny likes this
Johnny September 16, 2020

Is there anyway to automate it so when one of my component's status changes, it automatically creates an incident? Sorta like a "If Main Website's status is major outage, then create a new incident using a template."

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2020

You have defeated me on templates, I have not used them, sorry.

I have used the "Manage API" to create an incident from a shell script, but it does not use anything clever like templates.  (It's not even as clever as my "post text into Slack" script and that's pretty much a raw https call with a hard-coded token, which I believe to be clumsy and know to not scale)

Like Johnny likes this
0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 17, 2020

Hi Johnny,

As Nic has mentioned, you'll need something between NewRelic and Statuspage in order to actually trigger an incident in Statuspage, vs just posting the metric information.

OpsGenie is a good solution for this. It can receive the alert from NewRelic and then take action to create a Statuspage incident. Then when the NewRelic alert closes, it can automatically resolve the Statuspage incident as well. As a bonus, you can use that same alert in OpsGenie to call/text/push-notify somebody based on a schedule (meaning if you've got teammates, you don't need to be on-call 24/7!)

See more OpsGenie features and get started free here. I think you can do what you've outlined between NewRelic and Statuspage easily on the OpsGenie free tier!

Cheers,
Daniel

Edit: for clarity, OpsGenie (like Statuspage) is also an Atlassian product.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events