Skip to main content

New Relic Component

Easily manage metrics, logs, and events

Component key: new-relic

Description#

New Relic is a San Francisco, California-based technology company which develops cloud-based software to help website and application owners track the performances of their services. This component allows you to send events, logs and metrics to your New Relic Account.

New Relic Connections#

API Key#

After you obtain an API key from your New Relic Account Settings. The New Relic API key can be put directly into a New Relic connection.

InputNotesExample
Input
API Key
string
/ Required
Notes
Provide the API key from the developer console.
Example
example187843230995241

Actions#

Send Detailed Logs#

Use the Log API to send a detailed log using a custom request body to New Relic | key: sendDetailedLogs

InputDefaultNotes
Input
Message
code
/ Required
Default
{    "timestamp": 1562767499238,    "message": "{"service-name": "my-service", "user": {"id": 123, "name": "alice"}}",    "service-name": "my-service",    "user": {      "id": 123,      "name": "alice"    }  }  
Notes
Provide a JSON object containing the message of logs you want to send.
Input
Connection
connection
/ Required
Default
 
Notes
 

Output Example Payload#

{  "data": {    "requestId": "6af0a5fe-0001-b000-0000"  }}

Send Event Data#

Use the Event API to send custom event data to New Relic | key: sendEventData

InputNotesExample
Input
Account Id
string
/ Required
Notes
Provide the unique identifier of your New Relic Insights account.
Example
8439034
Input
Additional Attributes
string
Key Value List
Notes
Provide any key value pairs to pass with your request body.
Example
 
Input
Event Type
string
/ Required
Notes
Can be a combination of alphanumeric characters, underscores, and colons
Example
Purchase
Input
Connection
connection
/ Required
Notes
 
Example
 

Output Example Payload#

{  "data": {    "requestId": "6af0a5fe-0001-b000-0000"  }}

Send Logs#

Use the Log API to send log data to New Relic | key: sendLogs

InputNotesExample
Input
Message
string
Notes
Provide a JSON string containing the message of logs you want to send.
Example
{"service-name": "my-service", "user": {"id": 123, "name": "alice"}}
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Timestamp
string
/ Required
Notes
Provide a valid UNIX timestamp to be passed alongside the logs.
Example
1562767499238

Output Example Payload#

{  "data": {    "requestId": "6af0a5fe-0001-b000-0000"  }}

Send Metric Data#

Use the Metric API to send custom metrics to the New Relic | key: sendMetrics

InputNotesExample
Input
Attributes
string
Key Value List
Notes
A map of key value pairs associated with this specific metric. Values can be strings, JSON numbers, or booleans. Keys are case-sensitive and must be less than 255 characters.
Example
memory.heap
Input
Metric Name
string
/ Required
Notes
Provide the name of the metric you would like to report.
Example
memory.heap
Input
Metric Type
string
/ Required
Notes
Provide a string value for the type of metric you would like to report. In order to correctly chose this value refer to the list of types here: https://docs.newrelic.com/docs/data-apis/understand-data/metric-data/metric-data-type/
Example
gauge
Input
Metric Value
string
Notes
Provide a value to report.
Example
2.3
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Timestamp
string
/ Required
Notes
Provide a valid UNIX timestamp to be passed alongside the logs.
Example
1562767499238

Output Example Payload#

{  "data": {    "requestId": "6af0a5fe-0001-b000-0000"  }}