Moogsoft Docs

New Relic Polling

You can install the New Relic Polling integration to enable Moogsoft AIOps to collect event data from New Relic. The integration uses API authorization keys to authenticate with New Relic.

See the New Relic documentation for details on New Relic components.

Before You Begin

The New Relic Polling integration has been validated with New Relic v. 2.3. Before you start to set up your integration, ensure you have met the following requirements:

  • You know the event type, incident, event, or violation, that you want to retrieve.
  • If you want to retrieve incidents, you have the New Relic Account ID and New Relic Insights API Query Key.
  • If you want to retrieve events or violations, you have the New Relic API Key.
  • Your New Relic server is able to accept HTTP/HTTPS requests.

Configure the New Relic Integration

Configure the New Relic Polling integration in Moogsoft AIOps as follows:

  1. Navigate to the Integrations tab.
  2. Click New Relic Polling in the Monitoring section.
  3. Follow the instructions to create an integration name.

Configure New Relic

Log in to New Relic to configure a notification channel to send event data to your system. For more help, see the New Relic Documentation .

  1. Create a new notification channel in New Relic with the following properties:

    Channel Type Webhook
    Channel Name Send to New Relic Insights for AIOps
    Base URL

    Provide the New Relic Insights URL, for example:<account id>/events

  2. Enable 'Custom Payload':

      "account_id": "$ACCOUNT_ID",
      "account_name": "$ACCOUNT_NAME",
      "condition_id": "$CONDITION_ID",
      "condition_name": "$CONDITION_NAME",
      "current_state": "$EVENT_STATE",
      "details": "$EVENT_DETAILS",
      "event_type": "$EVENT_TYPE",
      "incident_acknowledge_url": "$INCIDENT_ACKNOWLEDGE_URL",
      "incident_id": "$INCIDENT_ID",
      "incident_url": "$INCIDENT_URL",
      "owner": "$EVENT_OWNER",
      "policy_name": "$POLICY_NAME",
      "policy_url": "$POLICY_URL",
      "runbook_url": "$RUNBOOK_URL",
      "severity": "$SEVERITY",
      "targets": "$TARGETS",
      "timestamp": "$TIMESTAMP",
      "violation_chart_url": "$VIOLATION_CHART_URL"
  3. To include headers with webhooks, add Custom Headers and provide a name and value for each header.

    Name Value
    X-Insert-Key The Insights Insert Key
  4. You can send a test notification to verify that Moogsoft AIOps can receive a test event from New Relic, if you wish.

  5. Assign the notification channel to one or more alert policies in New Relic. You can create a new alert policy or add the notification to an existing alert policy.

After you complete the New Relic Polling integration, Moogsoft AIOps polls New Relic every 10 seconds to collect event data.