New Relic · Arazzo Workflow

New Relic Ingest Metrics And Logs

Version 1.0.0

Send a metric batch then send a correlated log batch in one flow.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub AnalysisAnalyticsAPMDevOpsInfrastructureMonitoringObservabilityPerformancePlatformArazzoWorkflows

Provider

new-relic

Workflows

ingest-metrics-and-logs
Send a metric batch followed by a correlated log batch.
Sends dimensional metrics to the Metric API, captures the request id, and then sends correlated logs to the Log API sharing the same service and host attributes.
2 steps inputs: hostName, logMessage, metricName, metricValue, serviceName outputs: logRequestId, metricRequestId
1
sendMetricBatch
Send a dimensional metric batch tagged with the shared service and host attributes; the Metric API accepts the batch and queues it for processing.
2
sendLogBatch
Send a correlated log batch sharing the same service and host attributes so the logs can be joined with the metrics in NRDB.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: New Relic Ingest Metrics And Logs
  summary: Send a metric batch then send a correlated log batch in one flow.
  description: >-
    A dual telemetry ingestion pattern. The workflow sends a batch of dimensional
    metrics to the Metric API and then sends a correlated batch of logs to the
    Log API, sharing common attributes so the two signals can be joined in NRDB.
    Every step spells out its request inline so the flow can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-4220.20
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-4220.20
      capability_name: Observability Management
      spec: new-relic-metrics-api-openapi.yml
      confidence: 0.9
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: logsApi
  url: ../openapi/new-relic-logs-api-openapi.yml
  type: openapi
- name: metricsApi
  url: ../openapi/new-relic-metrics-api-openapi.yml
  type: openapi
workflows:
- workflowId: ingest-metrics-and-logs
  summary: Send a metric batch followed by a correlated log batch.
  description: >-
    Sends dimensional metrics to the Metric API, captures the request id, and
    then sends correlated logs to the Log API sharing the same service and host
    attributes.
  inputs:
    type: object
    required:
    - serviceName
    - hostName
    - metricName
    - metricValue
    - logMessage
    properties:
      serviceName:
        type: string
        description: The service.name attribute shared by the metrics and logs.
      hostName:
        type: string
        description: The host.name attribute shared by the metrics and logs.
      metricName:
        type: string
        description: The name of the metric to send.
      metricValue:
        type: number
        description: The gauge value of the metric.
      logMessage:
        type: string
        description: The log message to send.
  steps:
  - stepId: sendMetricBatch
    description: >-
      Send a dimensional metric batch tagged with the shared service and host
      attributes; the Metric API accepts the batch and queues it for processing.
    operationId: sendMetrics
    parameters:
    - name: Content-Type
      in: header
      value: application/json
    requestBody:
      contentType: application/json
      payload:
      - common:
          attributes:
            service.name: $inputs.serviceName
            host.name: $inputs.hostName
        metrics:
        - name: $inputs.metricName
          type: gauge
          value: $inputs.metricValue
    successCriteria:
    - condition: $statusCode == 202
    outputs:
      metricRequestId: $response.body#/requestId
  - stepId: sendLogBatch
    description: >-
      Send a correlated log batch sharing the same service and host attributes so
      the logs can be joined with the metrics in NRDB.
    operationId: sendLogs
    parameters:
    - name: Content-Type
      in: header
      value: application/json
    requestBody:
      contentType: application/json
      payload:
      - common:
          attributes:
            service.name: $inputs.serviceName
            host.name: $inputs.hostName
        logs:
        - message: $inputs.logMessage
          level: INFO
    successCriteria:
    - condition: $statusCode == 202
    outputs:
      logRequestId: $response.body#/requestId
  outputs:
    metricRequestId: $steps.sendMetricBatch.outputs.metricRequestId
    logRequestId: $steps.sendLogBatch.outputs.logRequestId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/new-relic-ingest-metrics-and-logs-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.