Problem
You want to get scraper metrics for your Prometheus OpenMetrics integration with New Relic for Docker or Kubernetes.
Docker: If you configure the http://localhost:8080/metrics
endpoint, the integration will also scrape its own metrics.
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 |
---|---|
| Discovered targets by retriever (for example, Fixed, Kubernetes). |
| Fetches attempted that resulted in an error by target. |
| Attempted discoveries by retriever (for example, Fixed, Kubernetes). |
| Fetches attempted by target. |
| The total time in seconds to fetch the metrics of a target. |
| The total time in seconds to get the list of targets by resource kind and retriever (for example, Kubernetes Pods, services, etc). |
| Size of target's payload. |
| The total time in seconds to process all the steps of the integration. |
| The number of times the integration has been executed. |
| Total size of the payloads scraped. |
| The total number of scraped time series. |
| Total number of time series by target. |
| Total number of metrics scraped by type and target. |
| Total number of metrics scraped by type. |
| Attempted discoveries that resulted in an error by retriever. |