Expand description
Performance metrics for stygian-browser.
Tracks browser pool utilisation, acquisition latency, crash rates, and
process memory. Metrics are exported in Prometheus text format via
gather.
§Enabling
[dependencies]
stygian-browser = { version = "0.1", features = ["metrics"] }§Example
use stygian_browser::metrics::{gather, METRICS};
// After your scraping loop:
let report = gather();
println!("{report}");§Prometheus metrics
| Name | Type | Description |
|---|---|---|
browser_pool_size | Gauge | Number of active browser instances |
browser_acquisition_duration_seconds | Histogram | Time to acquire a browser |
browser_crashes_total | Counter | Cumulative browser crashes |
process_rss_bytes | Gauge | Process resident set size (Linux only) |
Structs§
- Browser
Metrics - Global Prometheus metrics for the browser pool.
Statics§
- METRICS
- Global metrics instance.
Functions§
- gather
- Convenience alias for
METRICS.gather().