Skip to content

Azure Functions app which imports PagerDuty incidents into New Relic Insights

License

Notifications You must be signed in to change notification settings

iQmetrix/PagerDutyInsights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PagerDuty Insights

Scrapes data about resolved incidents using the PagerDuty API and sends them to New Relic Insights. Runs on Azure Functions.

Setup instructions

Deploy to Azure

  1. Create/gather the API keys listed below.
  2. Click the button above.
  3. Pick a name and location for your function app.

Required application settings

Interesting NRQL queries

Here are some sample NRQL queries you can run or use to build dashboards:

Who received the most alerts this week?

SELECT count(*) FROM PagerDutyIncident facet firstAssignedToName since 1 week ago timeseries auto

2016_11_28_11_51_19_insights_pagerduty_activity

SELECT count (*) as 'Alerts received' from PagerDutyIncident since 1 week ago facet firstAssignedToName

2016_11_28_11_55_22_insights_pagerduty_activity

What time of day are incidents occurring?

SELECT histogram(createdHour - 6, 24, 24) from PagerDutyIncident SINCE 1 week ago

2016-11-28 11_56_13-insights_ pagerduty activity

Are incidents resolving themselves before anyone even acknowledges them?

This could indicate false or non-actionable alerts.

SELECT count(*) as 'Incidents' from PagerDutyIncident where acknowledgedBy is null and resolvedByType NOT LIKE '%user%' since 1 week ago

Have any alerts been slept through and escalated to the secondary on-call?

SELECT count(*) as 'Escalations' from PagerDutyIncident where escalations > 0 since 1 week ago

Credits

This project was inspired by a similar script authored by the New Relic team. Check it out for more NRQL queries and ideas.

About

Azure Functions app which imports PagerDuty incidents into New Relic Insights

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published