Prometheus and New Relic: Remote Write and the Prometheus Agent

Keep your Prometheus exporters, gain long-term storage

Many teams already use Prometheus exporters and metrics, especially in Kubernetes. New Relic can ingest them, giving you long-term storage, correlation with traces and logs, and NRQL querying — without rewriting instrumentation.

Option 1: Remote Write

If you run a Prometheus server, add New Relic as a remote write endpoint:

remote_write:
  - url: https://metric-api.newrelic.com/prometheus/v1/write?prometheus_server=prod-cluster
    authorization:
      credentials: <NEW_RELIC_LICENSE_KEY>

Your local Prometheus keeps working, and data also goes to New Relic.

Option 2: New Relic Prometheus Agent

In Kubernetes, the New Relic Prometheus agent (part of the nri-bundle) scrapes Prometheus endpoints directly — no separate Prometheus server needed.

Querying

Prometheus metrics become dimensional metrics in New Relic:

SELECT rate(sum(http_requests_total), 1 minute) FROM Metric
WHERE job = 'checkout' FACET status TIMESERIES

New Relic also supports PromQL-style querying in its query builder.

Cardinality Control

High-cardinality labels (user IDs, request IDs) explode metric counts and cost:

  • Drop unnecessary labels with metric_relabel_configs
  • Filter metrics you don't use
  • Review top metrics by data points

Benefits

  • Long retention without managing storage
  • Correlate Prometheus metrics with APM traces and logs
  • Unified alerting across metric sources

Prometheus is a great collection standard. New Relic adds the context and history around it.

Arivanandhan Chitheshwaran