dimzak
dimzak

Reputation: 2571

New Relic availability alert

I tried setting up an APM Availability alert but apparently is not supported in New Relic Alerts(beta) as shown here:
https://docs.newrelic.com/docs/alerts/new-relic-alerts-beta/getting-started/known-limitations-new-relic-alerts

How can I do the same using new Alerts?

Upvotes: 1

Views: 764

Answers (2)

Gene Johnson
Gene Johnson

Reputation: 36

Although an 'app not reporting' alert condition is not built into New Relic Alerts, it's possible to rig one using NRQL alerts. Here are the steps:

  1. Go to New Relic Alerts and begin creating a NRQL alert condition:

  2. Query your app with:

    • SELECT count(*) FROM Transaction WHERE appName = 'foo'
  3. Set your threshold to :
    • Static
    • sum of query results is below x
    • at least once in y minutes

The query runs once per minute. If the app stops reporting then count will turn the null values into 0 and then we sum them. When the number goes below whatever your threshold is then you get a notification. I recommend using the preview graph to determine how low you want your transactions to get before receiving a notification. Here's some good information:

Upvotes: 0

NR_Jacob
NR_Jacob

Reputation: 643

You will need to use Synthetics (a Ping monitor to be specific) paired with the Alerts(beta) to replicate the functionality of Availability Monitoring.

Upvotes: 1

Related Questions