Enable Prometheus (Optional)
Optional Feature: Prometheus monitoring is optional. Blocklight works perfectly without it. Enable it only if you need to monitor Blocklight’s health and performance in production.
/api/v1/system/metrics when the REST API is running. To enable the monitoring stack:
Available Metrics
Blocklight exposes basic operational metrics for monitoring system health:| Metric | Type | Description |
|---|---|---|
blocklight_up | gauge | Blocklight is running (1 = healthy, 0 = down) |
blocklight_rules_total | gauge | Total number of detection rules loaded |
blocklight_rules_enabled | gauge | Number of enabled rules |
blocklight_transactions_processed_total | counter | Total transactions processed |
blocklight_findings_generated_total | counter | Total findings/detections generated |
blocklight_avg_evaluation_time_ms | gauge | Average rule evaluation time in milliseconds |
When to Enable?
- Production servers - Monitor uptime and basic performance metrics
- SRE/DevOps - Alert if Blocklight goes down or performance degrades
- Development - Not needed for local testing
- Threat detection - Use Blocklight’s alerts instead (this monitors the tool, not threats)
For detailed observability of detections and logs, use Vector + Loki + Grafana (see Pipeline Integration). Prometheus is for monitoring Blocklight itself, not the detections it generates.