> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plerion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Metrics

> Monitor collector manager metrics using Prometheus-style endpoints to track performance, collection success, and failures.

## 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.
