Problem
You've installed the Prometheus OpenMetrics integration for Docker or Kubernetes, but no data appears in the UI of New Relic.
Solution
Follow these troubleshooting tips for Docker or Kubernetes as applicable:
If you're 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.
If you're 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:
Inspect the logs for metric errors:
$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 your nri-prometheus-latest.yaml
manifest file.