Authentication

This provider requires authentication.

  • api_key: New Relic User key. To receive webhooks, use User key of an admin account (required: True, sensitive: True)
  • account_id: New Relic account ID (required: True, sensitive: False)
  • new_relic_api_url: New Relic API URL (required: False, sensitive: False)

Certain scopes may be required to perform specific actions or queries via the provider. Below is a summary of relevant scopes and their use cases:

  • ai.issues:read: Required to read issues and related information (mandatory) (Documentation)
  • ai.destinations:read: Required to read whether keep webhooks are registered (Documentation)
  • ai.destinations:write: Required to register keep webhooks (Documentation)
  • ai.channels:read: Required to know informations about notification channels. (Documentation)
  • ai.channels:write: Required to create notification channel (Documentation)

In workflows

This provider can be used in workflows.

As “step” to query data, example:

steps:
    - name: Query newrelic
      provider: newrelic
      config: "{{ provider.my_provider_name }}"
      with:
        nrql: {value}  
        query: {value}  # query to execute

If you need workflow examples with this provider, please raise a GitHub issue.

Connecting with the Provider

  1. Go to https://one.newrelic.com/admin-portal/api-keys/home to create User Key.
  2. Get api_key and account_id from the key created.
  3. Based on region get api_url from here https://docs.newrelic.com/docs/apis/rest-api-v2/get-started/introduction-new-relic-rest-api-v2 .

Webhook Integration Modifications

The webhook integration adds Keep as a destination within the “Alerts and AI” API within New Relic. This grants Keep access to the following scopes within New Relic:

  • ai.destinations:read
  • ai.destinations:write
  • ai.channels:read
  • ai.channels:write