Skip to main content

Metrics endpoint

The collector manager exposes Prometheus-style metrics on the /metrics path at port 8080. These metrics can be scraped directly by Prometheus or any compatible monitoring system.

Key collection metrics

  • resource_collector_failure_count (counter)
    Total number of resource collection failures. Use this to track errors or issues during collection.
  • resource_collector_success_count (counter)
    Total number of successful resource collection operations. Use this to measure overall progress and reliability.
In addition to these, the collector manager also exposes standard Go runtime metrics (CPU, memory, goroutines) that provide additional insight into controller performance and resource usage.

Monitoring and alerting

Monitoring these metrics helps ensure the health and reliability of the collector manager. We recommend integrating with:
  • Prometheus — to scrape and store metrics.
  • Grafana — to visualize trends and dashboards.
  • Alertmanager — to configure alerts and notify on threshold breaches.
For example, setting alerts on resource_collector_failure_count can help you detect persistent failures early and respond before they affect scanning results.
I