Skip to content
Maua.Culturewire

New Relic

APM, NRQL queries, alerts, incidents and entities

Developer toolsCatalog3 tools · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • User key (NRAK-…)SecretRequired
    • Data regionOptionalIdentifier2 choices

    Where to find them

    1. At one.newrelic.com (or one.eu.newrelic.com): your avatar (bottom left) → “API keys” → “Create a key”.
    2. Under “Key type”, choose “User”, give it a name and click “Create a key”.
    3. Copy the key (NRAK-…). It acts with your user's permissions; to limit them, create it with a dedicated user that has a read-only role.

    Get credentials (opens in a new tab)

Tools (3)

  • New Relic API requestNEWRELIC_SEND_REQUEST

    Authenticated call to the New Relic API (https://{server}). Any endpoint of the API is allowed. The main API is NerdGraph (use NEWRELIC_SEND_GRAPHQL_REQUEST or NEWRELIC_RUN_NRQL_QUERY), e.g. { actor { accounts { id name } } }, { actor { entitySearch(query: "domain = 'APM' AND reporting = 'true'") { results { entities { guid name alertSeverity } } } } } or { actor { account(id: 1234567) { alerts { policiesSearch { policies { id name } } } } } }. REST v2 (legacy): GET /v2/applications.json.

    Required scopes

    No scopes required

    Input

    New Relic API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.
  • New Relic GraphQL requestNEWRELIC_SEND_GRAPHQL_REQUEST

    Runs a GraphQL query or mutation against the New Relic API and returns its data and errors.

    Required scopes

    No scopes required

    Input

    New Relic GraphQL request input
    NameTypeDescription
    queryrequiredstringGraphQL query or mutation
    variablesobjectGraphQL variables
  • NRQL queryNEWRELIC_RUN_NRQL_QUERY

    Runs an NRQL query on an account and returns the rows, e.g. SELECT count(*) FROM Transaction FACET appName SINCE 1 hour ago or SELECT * FROM NrAiIncident WHERE event = 'open' SINCE 1 day ago.

    Required scopes

    No scopes required

    Input

    NRQL query input
    NameTypeDescription
    nrqlrequiredstringNRQL query
    accountintegerAccount ID (empty: the only accessible account)