• /
  • EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

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

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

img-integration-k8s@2x.png Kubernetes

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

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