Skip to main content

New Relic

New Relic is a cloud-based observability platform built to help you create more perfect software. It includes these core components:

  • Full-Stack Observability lets you easily visualize, analyze, and troubleshoot your entire software stack in one connected experience. With rich analytics and a curated user experience, Full-Stack Observability surfaces the context your teams need to pinpoint and resolve problems within your infrastructure, applications, and end-user experience faster.
  • Applied Intelligence
  • Telemetry Data

New Relic in a Spot Connect workflow lets you:

Configure New Relic in Spot Connect

  1. Sign in to your New Relic account.
  2. Create a user key in New Relic.
  3. Copy the user key value.
  4. In the Spot console, go to Connect > Settings > Integrations.
  5. Click New Relic > Add Integration.
  6. Copy the Account ID from New Relic.
  7. Paste the Account ID from New Relic in New Relic Account Id.
  8. Paste the user key value from New Relic in New Relic API Key.
  9. Click Add Instance.

Integration Action: New Relic NRQL Query

Use the action to run New Relic NRQL Query and retrieve data in Spot Connect

Input

ParameterDescriptionRequired
New Relic InstanceSelect a New Relic integration instance configured in Spot ConnectRequired
NRQL QueryNRQL query to be run on the given New Relic accountRequired
TimeoutQuery timeout in seconds (default is 30 seconds)Optional
S3 Bucket KeyName of S3 keyOptional
Export File NameChange the name of the S3 fileOptional
S3 BucketAn S3 bucket to store the query and the result.Optional

Output

ParameterTypeDescription
resultObjectThe output of the NRQL Query
is_result_truncatedBooleanBoolean value which denotes if the result is truncated or not
result_bucket_keyStringName of the file where result is written
s3_urlStringURL of the bucket
s3_bucketStringName of the bucket
execution_statusStringThe execution status of the query run (such as S_OK / E_FAIL)

Action Example

  1. Drag and drop the New Relic NRQL Query action node onto the workflow builder center panel.
  2. Select the New Relic NRQL Query action node.
  3. Select New Relic Instance.
  4. Enter the NRQL Query.
  5. You can select the S3 bucket name for the query output.

Integration Action: New Relic Webhook Trigger

You can automatically execute a Spot Connect workflow with a New Relic alert in realtime after you set up a webhook integration between Spot Connect and New Relic:

  1. Set up an API key if you don't already have one.

  2. In the Spot console, select Connect > Workflows.

  3. Click New Workflow and enter a name for the workflow.

  4. Select New Relic > Create Workflow.

    View image
  5. In the center panel of the workflow builder, click the New Relic trigger node to open the right panel.

  6. In the Webhook API Key Name, select the API key you created earlier.

  7. Compose your workflow and save it.

  8. In the workflow builder, click the New Relic trigger node and copy the Webhook API Key Value and the Workflow Webhook URL.

    View image
  9. In New Relic, set up a webhook destination:

    • Paste the New Relic Workflow Webhook URL from the Spot Connect workflow builder in the Endpoint URL.
    • If you want to set up a custom header: a. Click + custom headers and enter x-api-key as the custom header name. b. Paste the Webhook API Key Value from the Spot Connect workflow builder in the custom header value.