Description
n8n-nodes-newrelic
This is an n8n community node. It lets you use New Relic in your n8n workflows.
n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Credentials
Usage
Development
Installation
Follow the installation guide in the n8n community nodes documentation to install this node.
If you want to install this node locally for development:
1. Clone this repository.
2. Run npm install in the n8n-nodes-newrelic directory.
3. Run npm run build to build the code.
4. Link the node to your n8n installation:
cd n8n-nodes-newrelic
npm link
cd /path/to/n8n/root
npm link n8n-nodes-newrelic
(Or usually for n8n local development, you just need to npm link inside the node folder and then start n8n, ensuring n8n looks for custom nodes in the global node_modules or ~/.n8n/custom).
Operations
NRQL Execution
- Query: Execute a NRQL (New Relic Query Language) query via NerdGraph.
- New Relic Trigger: Receive real-time alerts from New Relic via Webhook. Supports security verification using a Secret Token.
Trigger
Credentials
To use this node, you need to set up credentials:
1. User API Key: You need a User API Key (starts with NRAK-).
* Go to New Relic API keys documentation: User API Key.
2. Region: Select your New Relic data region:
* US (United States)
* EU (Europe)
3. New Relic Secret (for Trigger): Create a new credential and enter your Secret Token to verify webhook signatures.
Usage
Execute NRQL Query
1. Add the New Relic node to your workflow.
2. Select NRQL as the Resource and Query as the Operation.
3. Enter your NRQL query in the Query field.
Example: SELECT count() FROM Transaction
4. Execute the node. The result will return the raw data from NerdGraph.
Development
1. Install dependencies:
cd n8n-nodes-newrelic
npm install
2. Build the code:
npm run build
3. Watch for changes (optional):
npm run build:watch