Problem
You want to get logs for your Prometheus OpenMetrics integration with New Relic for Docker or Kubernetes.
Solution
Docker
docker logs nri-prometheusdocker logs nri-prometheus 2>&1 | grep -v "level=debug"
Kubernetes
kubectl logs deploy/nri-prometheuskubectl logs deploy/nri-prometheus | grep -v "level=debug"