No data appears (Prometheus integration)

Problem

You have installed the Prometheus OpenMetrics integration for Docker or Kubernetes, but no data appears in New Relic's UI.

Solution

Follow these troubleshooting tips for Docker or Kubernetes as applicable:

Docker icon Docker troubleshooting

If you are having problems with the integration:

  1. Check if the Prometheus OpenMetrics integration is running:

    docker ps -f "name=nri-prometheus"
  2. Check the Status field for the container:

    docker inspect nri-prometheus
  3. For more detailed information, use Docker inspect.

If no data appears in New Relic's UI:

  1. Run this NRQL query:

    docker logs nri-prometheus | grep "error emitting metrics"
  2. Check whether the log contains this:

    metrics api responded with status code 403
  3. If yes, check the LICENSE_KEY in your Docker config file.
img-integration-k8s@2x.png Kubernetes troubleshooting

If you are having problems with the integration:

  1. Check if the Prometheus OpenMetrics integration is running:

    kubectl describe pod -l "app=nri-prometheus"
  2. Check the Ready field for the pod.

  3. If the pod is not ready, check the Events.

If no data appears in New Relic's UI:

  1. Run this NRQL query:

    kubectl logs deploy/nri-prometheus | grep "error emitting metrics"
  2. Check whether the log contains this message:

    metrics api responded with status code 403
  3. If yes, check the LICENSE_KEY in your nri-prometheus-latest.yaml manifest file.

For more help

If you need more help, check out these support and learning resources: