• Log in

Get logs (Prometheus integration)

Problem

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

Solution

Docker:

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

Kubernetes:

kubectl logs deploy/nri-prometheus
kubectl logs deploy/nri-prometheus | grep -v "level=debug"
Copyright © 2022 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.