• English日本語한국어
  • Log inStart now

NerdGraph tutorial: Configure cloud integrations

This document provides examples of how to use New Relic NerdGraph to query and modify your cloud integration configuration data, including Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). Using the NerdGraph GraphiQL explorer, you can also query NRQL data.

These examples for querying cloud integration configuration data use GraphQL queries and mutations:

  • Queries: requests that are intended to only fetch data
  • Mutations: requests that create or update data on the server

Requirements

Before querying cloud integration data with NerdGraph, ensure you have:

Access the NerdGraph GraphiQL explorer

To access the NerdGraph GraphiQL explorer:

  1. Go to api.newrelic.com/graphiql.
  2. Add any of the following examples.

Query examples

Queries are requests that are intended to only fetch data (no side effects). Queries in NerdGraph are not static, meaning that you can ask for more or less data depending on your needs. For each query, you can specify exactly what data you want to retrieve, as long as it is supported by the schema.

Mutation examples

Mutations are requests that are intended to have side effects, such as creating or updating data on the server. Mutations require the keyword mutation and the name of the mutation. NerdGraph mutations are restricted to a subset of all possible mutations.

Enable an AWS integration

This example uses an AWS SQS integration and assumes you have connected an AWS account to New Relic.

To enable an AWS integration:

Change polling interval for the AWS integration

This example uses an AWS SQS integration and assumes you have connected an AWS account to New Relic. To change the polling interval of an AWS integration:

Disable the AWS integration

This example uses an AWS SQS integration and assumes you have connected an AWS account to New Relic. To disable an AWS integration:

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.