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.

Authorization Notes#

You obtain an API key from your New Relic Account Settings. The New Relic API key can be put directly into a API key credential.

Actions#

Send Detailed Logs#

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

InputKeyDefaultNotes

Message

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

Authorization#

Authorization is required for this action.
Auth TypeKeyDescriptionFields
API Keyapi_keyAPI authorization based on an API key

API Key |  api_key

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

InputKeyNotesExample

Account Id

string
/ Required
accountIdProvide the unique identifier of your New Relic Insights account.8439034

Additional Attributes

string
additionalAttributesProvide any key value pairs to pass with your request body.

Event Type

string
/ Required
eventTypeCan be a combination of alphanumeric characters, underscores, and colonsPurchase

Authorization#

Authorization is required for this action.
Auth TypeKeyDescriptionFields
API Keyapi_keyAPI authorization based on an API key

API Key |  api_key

Output Example Payload#

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

Send Logs#

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

InputKeyNotesExample

Message

string
jsonMessageProvide a JSON string containing the message of logs you want to send.{"service-name": "my-service", "user": {"id": 123, "name": "alice"}}

Timestamp

string
/ Required
timestampProvide a valid UNIX timestamp to be passed alongside the logs.1562767499238

Authorization#

Authorization is required for this action.
Auth TypeKeyDescriptionFields
API Keyapi_keyAPI authorization based on an API key

API Key |  api_key

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

InputKeyNotesExample

Attributes

string
attributesA 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.memory.heap

Metric Name

string
/ Required
metricNameProvide the name of the metric you would like to report.memory.heap

Metric Type

string
/ Required
metricTypeProvide 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/gauge

Metric Value

string
metricValueProvide a value to report.2.3

Timestamp

string
/ Required
timestampProvide a valid UNIX timestamp to be passed alongside the logs.1562767499238

Authorization#

Authorization is required for this action.
Auth TypeKeyDescriptionFields
API Keyapi_keyAPI authorization based on an API key

API Key |  api_key

Output Example Payload#

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