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 troubleshooting
-
If you are having problems with the integration:
-
Check if the Prometheus OpenMetrics integration is running:
docker ps -f "name=nri-prometheus"
-
Check the
Status
field for the container:docker inspect nri-prometheus
-
For more detailed information, use Docker
inspect
.
If no data appears in New Relic's UI:
-
Run this NRQL query:
docker logs nri-prometheus | grep "error emitting metrics"
-
Check whether the log contains this:
metrics api responded with status code 403
- If yes, check the
LICENSE_KEY
in your Docker config file.
-
Kubernetes troubleshooting
-
If you are having problems with the integration:
-
Check if the Prometheus OpenMetrics integration is running:
kubectl describe pod -l "app=nri-prometheus"
-
Check the
Ready
field for the pod. -
If the pod is not ready, check the
Events
.
If no data appears in New Relic's UI:
-
Run this NRQL query:
kubectl logs deploy/nri-prometheus | grep "error emitting metrics"
-
Check whether the log contains this message:
metrics api responded with status code 403
- If yes, check the
LICENSE_KEY
in yournri-prometheus-latest.yaml
manifest file.
-