Integrate with New Relic
While there are multiple ways to send external Prometheus data to New Relic, only the Prometheus remote write integration option is relevant to Astra Streaming.
Prerequisites
-
Review Monitor streaming tenants.
-
Save your New Relic license key locally.
Prepare the extra Prometheus server
Install an extra Prometheus server to act as a bridge to forward scraped Astra Streaming metrics to New Relic.
This is required because Astra Streaming is a managed service, and you can’t modify the Astra Streaming Prometheus server as required by the New Relic Prometheus write integration.
Configure New Relic
Configure the remoteWrite
integration on your local Prometheus server.
For more information, see Set up your Prometheus remote write integration.
This example uses a local Prometheus server installed in a local Docker Desktop Kubernetes cluster.
Your remoteWrite
configuration depends on your Prometheus server setup.
-
In your New Relic account, click Add Data.
-
Under Open source monitoring, select Prometheus Remote Write Integration.
-
Enter the name of your local Prometheus server, such as
prometheus-docker-desktop
, and then click Generate URL. This generates the endpoint URLs required to configure aremote_write
integration on your local Prometheus server. -
Create a Kubernetes secret with your New Relic license key:
kubectl create secret generic nr-license-key --from-literal=value=LICENSE_KEY
-
In your extra Prometheus server’s
custom-values.yaml
file, add theremoteWrite
configuration to send local Prometheus metrics to New Relic throughremote_write
:custom-values.yamlprometheus: prometheusSpec: scrapeInterval: 60s evaluationInterval: 15s additionalScrapeConfigsSecret: enabled: true name: SECRET_NAME key: CONFIG_YAML remoteWrite: - url: https://metric-api.newrelic.com/prometheus/v1/write?prometheus_server=CLUSTER_NAME authorization: credentials: key: value name: nr-license-key
-
Restart your local Prometheus server.
-
In your New Relic account, go to the Remote Write Dashboard to confirm that Astra Streaming metrics are visible in New Relic.
See also
-
For a list of exposed endpoints for Astra Streaming metrics, see Grafana dashboards for Astra Streaming metrics.
-
To scrape Astra Streaming metrics in Kubernetes with an external Prometheus server, see Integrate with an external Prometheus and Grafana instance.
-
To scrape Astra Streaming metrics into New Relic, see Integrate with New Relic.