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

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.

  1. In your New Relic account, click Add Data.

  2. Under Open source monitoring, select Prometheus Remote Write Integration.

  3. 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 a remote_write integration on your local Prometheus server.

  4. Create a Kubernetes secret with your New Relic license key:

    kubectl create secret generic nr-license-key --from-literal=value=LICENSE_KEY
  5. In your extra Prometheus server’s custom-values.yaml file, add the remoteWrite configuration to send local Prometheus metrics to New Relic through remote_write:

    custom-values.yaml
    prometheus:
       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
  6. Restart your local Prometheus server.

  7. In your New Relic account, go to the Remote Write Dashboard to confirm that Astra Streaming metrics are visible in New Relic.

See also

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com