Get scraper metrics (Prometheus integration)

Problem

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

Docker icon Docker: If you configure the http://localhost:8080/metrics endpoint, the integration will also scrape its own metrics.

img-integration-k8s@2x.png Kubernetes: By default, the scraper will also scrape its own metrics.

Solution

To learn more about what is happening inside the scraper, use the following metrics for your Docker or Kubernetes integration with New Relic:

Metric Description
nr_stats_targets_total The total number of scraped endpoints.
nr_stats_targets_failed_fetch The number of endpoints where scraping is failing.
nr_stats_metrics_total The total number of scraped metrics.
nr_stats_metrics_total_timeseries The total number of scraped time series.

For more help

Recommendations for learning more: