Get logs (Prometheus integration)

Problem

You want to get logs for your Prometheus OpenMetrics integration with New Relic for Docker or Kubernetes.

Solution

Docker icon Docker:

docker logs nri-prometheus
docker logs nri-prometheus 2>&1 | grep -v "level=debug"

img-integration-k8s@2x.png Kubernetes:

kubectl logs deploy/nri-prometheus
kubectl logs deploy/nri-prometheus | grep -v "level=debug"

For more help

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