Prometheus Metrics
Prometheus Metrics
The engine daemon exposes Prometheus metrics on GET /metrics on the same --api-addr as the REST API. The full definition catalogue under --all-features (which is how the prebuilt release archives and the GHCR Docker image are built) is 118 metric names: 110 are always registered, and the OTLP (3), TLS (2), and STIX source (3) families are feature-gated on daemon-otlp, daemon-tls, and stix-source respectively. The runtime exposes the ones that have ever fired in a given process. The three field-observer surfaces always render their # HELP/# TYPE lines (and stay at zero unless --observe-fields was passed); the others follow the lazy-registration pattern documented per section below.
The exact source of truth is the daemon/metrics module.
Engine core (32 metrics)
These always show up. They cover ingest, matches, queue depth, back-pressure, reloads, and resource usage.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_events_processed_total |
counter | none | Total events processed by the engine. |
rsigma_events_parse_errors_total |
counter | none | JSON or log-format parse errors at the source. |
rsigma_detection_matches_total |
counter | none | Total detection matches emitted. |
rsigma_correlation_matches_total |
counter | none | Total correlation matches emitted. |
rsigma_detection_rules_loaded |
gauge | none | Number of detection rules currently loaded. |
rsigma_correlation_rules_loaded |
gauge | none | Number of correlation rules currently loaded. |
rsigma_rule_parse_errors |
gauge | none | Rule documents that failed to parse and were left out of the currently loaded rule set. A refused reload leaves it unchanged. Added in v0.26.0 |
rsigma_correlation_state_entries |
gauge | none | Active entries in the correlation state. Watch versus the max_state_entries cap (default 100000). |
rsigma_reloads_total |
counter | none | Total reload attempts (file watcher, SIGHUP, POST /api/v1/reload). |
rsigma_reloads_failed_total |
counter | none | Reload attempts that were refused, for example a compile error, every rule failing to parse, or any parse error under --strict-rules. The previous rules stay active. |
rsigma_ruleset_rules_loaded |
gauge | ruleset, kind |
Rules loaded per named ruleset, split into detection and correlation counts. Stays absent unless the daemon runs named rulesets. Unreleased |
rsigma_ruleset_matches_total |
counter | ruleset, kind |
Matches produced per named ruleset, split into detection and correlation. Stays absent unless the daemon runs named rulesets. Unreleased |
rsigma_ruleset_events_skipped_total |
counter | ruleset |
Events kept away from a named ruleset by its when schema binding. Stays absent unless the daemon runs named rulesets.
Unreleased |
rsigma_tenant_rejected_total |
counter | channel, reason |
Ingest that had no tenant binding or was skipped for lack of one. channel is rest, otlp_http, otlp_grpc, or engine; reason is no_tenant or untenanted_event. Registered unconditionally.
Unreleased |
rsigma_tenant_quota_evictions_total |
counter | store |
Entries evicted because a tenant hit its quota. store is correlation_state, active_alerts, incidents, or risk_entities.
Unreleased |
rsigma_detection_matches_by_tenant_total |
counter | tenant |
Detection and correlation matches per tenant. Tenants outside daemon.tenancy.metrics_tenant_allowlist count under other, so the label set stays bounded. Registered unconditionally and never incremented while tenancy is disabled.
Unreleased |
rsigma_api_auth_failures_total |
counter | reason (unauthorized, forbidden) |
API requests rejected by bearer-token authentication: unauthorized is a missing or unrecognized token, forbidden a recognized token without the required permission. Each label value surfaces after its first rejection. Stays absent while authentication is disabled. |
rsigma_audit_records_total |
counter | none | Control-plane API calls recorded in the audit trail. Stays absent when audit is disabled (no --state-db). |
rsigma_audit_write_errors_total |
counter | none | Audit trail SQLite insert or optional sink emission failures. |
rsigma_uptime_seconds |
gauge | none | Daemon uptime in seconds. |
rsigma_input_queue_depth |
gauge | none | Events currently buffered in the source→engine channel. Tracked for every input, including the HTTP and OTLP push receivers. |
rsigma_output_queue_depth |
gauge | none | Results currently buffered in the engine→sink channel. |
rsigma_back_pressure_events_total |
counter | none | Times a source was blocked on a full event channel, for every input including OTLP.
Unreleased The matching Input channel full, backpressure applied warning is logged at most once every 10 seconds with a suppressed count.
Unreleased |
rsigma_event_processing_seconds |
histogram | none | Per-event processing latency. |
rsigma_batch_phase_duration_seconds |
histogram | phase (parse, decode_merge, observe, evaluate, result_merge, dispatch) |
Wall-clock duration of each batch-processing phase. parse is the parallel format parse; decode_merge is the ordered post-parse merge and optional event filter; observe covers field/schema observers and decoded taps; evaluate is engine detection/correlation; result_merge is per-line result assembly and counters; dispatch is the daemon’s post-batch ack/sink enqueue loop. Compare _sum deltas over the same interval to rank serial share without inferring it from throughput. |
rsigma_pipeline_latency_seconds |
histogram | none | Latency from event dequeue to dispatch, before enrichment and sink delivery. Unreleased |
rsigma_batch_size |
histogram | none | Number of events processed per batch. |
rsigma_dlq_events_total |
counter | none | Events routed to the dead-letter queue, counted whether or not a --dlq sink is configured. |
rsigma_dlq_write_failures_total |
counter | none | Dead-letter queue entries the --dlq sink failed to write. Each one is a lost event that was already acked.
Added in v0.25.0 |
rsigma_sink_queue_depth |
gauge | sink |
Results buffered in each sink’s delivery queue. |
rsigma_sink_retries_total |
counter | sink |
Sink delivery retries after a retryable failure. Retries are counted per result: when a whole NATS or OTLP batch fails, each result in it is retried separately, with its own backoff, and counts its own retry. Unreleased |
rsigma_sink_dropped_total |
counter | sink |
Results dropped because a lossy sink’s queue was full (?on_full=drop). |
rsigma_sink_delivery_failures_total |
counter | sink |
Sink deliveries that exhausted retries and were routed to the DLQ. |
rsigma_sink_otlp_rejected_records_total |
counter | sink (otlp) |
Log records an OTLP collector accepted the request for but rejected in a partial success. They are not retried. Unreleased |
rsigma_webhook_requests_total |
counter | webhook_id, outcome (success, permanent_failure, rate_limited_wait) |
Webhook requests by outcome. rate_limited_wait counts token-bucket waits and can co-occur with a later success or permanent_failure on the same attempt. Queue depth, retries, drops, and DLQ routing are read from the shared per-sink series above, keyed by sink=<webhook id> (one-to-one with webhook_id). |
rsigma_webhook_request_duration_seconds |
histogram | webhook_id |
Per-webhook HTTP request latency. |
Per-rule labels (2 metrics)
These counters carry labels that identify which rule fired. They surface on /metrics only after the first match for that kind.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_detection_matches_by_rule_total |
counter | rule_title, level |
Detection matches per rule. |
rsigma_correlation_matches_by_rule_total |
counter | rule_title, level, correlation_type |
Correlation matches per rule (correlation_type is event_count, value_count, temporal, temporal_ordered, value_sum, value_avg, value_percentile, or value_median). |
rule_title is not guaranteed to be unique in a rule set. If two rules share a title, their counters add together. For collision-free per-rule analytics, scrape rsigma_detection_matches_total and join against your detection NDJSON stream by rule_id outside Prometheus.
These two families feed the silence and noisy signals of rule hygiene (and the production-volume column of rule scorecard): pass a saved scrape or a live endpoint as --metrics and they join per-rule by rule_title.
Dynamic sources (11 metrics)
Exposed when one or more dynamic sources are configured. The labelled counters surface after the first resolve attempt for the relevant source; source_cache_hits_total and source_resolve_seconds are global (no source_id label).
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_source_resolves_total |
counter | source_id, source_type (file, http, command, nats, watchlist, taxii) |
Total dynamic source resolution attempts. Counts every attempt, successful or not. |
rsigma_source_resolve_errors_total |
counter | source_id, error_kind (Fetch, Parse, Extract, Timeout, ResourceLimit) |
Failed dynamic source resolutions. |
rsigma_source_resolve_seconds |
histogram | none | Dynamic source resolution latency. Aggregated across all sources. |
rsigma_source_cache_hits_total |
counter | none | Times cached source data was served on resolution failure. Aggregated across all sources. |
rsigma_source_last_resolved_timestamp |
gauge | source_id |
Unix timestamp of the last successful resolution per source. Alert on staleness. |
rsigma_source_rebuilds_total |
counter | result (success, error) |
Rule rebuilds triggered by a changed pipeline source value. Unreleased |
rsigma_watchlist_indicators |
gauge | source_id |
Current unexpired indicators in a watchlist. One series per declared watchlist, starting at 0. Unreleased |
rsigma_watchlist_changes_total |
counter | source_id, op (add, update, remove, expire) |
Watchlist indicator changes. Unreleased |
rsigma_stix_source_indicators |
gauge | source_id |
Active indicators in a STIX source after lifecycle and the cap. An indicator that emits nothing is not included. Requires stix-source. One series per declared STIX source, starting at 0.
Unreleased |
rsigma_stix_source_objects_total |
counter | source_id |
STIX objects received while resolving a STIX source. Requires stix-source.
Unreleased |
rsigma_stix_source_skipped_total |
counter | source_id, reason (revoked, expired, not_yet_valid, low_confidence, pattern_type, unsupported_pattern, unmapped_observable, invalid_pattern, over_limit) |
Indicators or observables left out of a STIX source value on that resolve. An id that stays out is not counted again on later polls. Requires stix-source. Each reason is registered at 0.
Unreleased |
The error_kind values come from rsigma_runtime::sources::SourceErrorKind. Fetch covers HTTP, file, command, NATS connect-or-read, and TAXII poll failures (per-protocol details land in the error_message log field, not the label). ResourceLimit covers the 10 MiB body cap, 30 s command exec cap, and similar.
Enrichment (13 metrics)
Exposed when the daemon is built with daemon and --enrichers is passed. Every (enricher_id, kind, status) triple, every HTTP-cache enricher_id row, every MMDB hit and miss enricher_id row, both MMDB reload result values, every DNS cache hit and miss enricher_id row, and all three DNS query result values are pre-registered at startup, so all thirteen families render with their # HELP and # TYPE lines and zeroed counters on the first scrape, even before any event has fired. Filtered (kind- or scope-mismatched) enricher calls do not increment any counter, so cardinality stays bounded by the number of configured enrichers.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_enrichment_total |
counter | enricher_id, kind (detection, correlation), status (success, skip, error, timeout, miss, drop) |
Per-call outcome counter. kind is the enricher’s declared kind (the YAML kind: field), not a per-result discriminator. A miss (the lookup found no data for its key) reports miss when it is skipped or injected as null, and drop when it drops the result; a miss covered by default reports success.
Unreleased |
rsigma_enrichment_duration_seconds |
histogram | enricher_id, kind |
Per-enricher latency. Buckets target both fast template calls and slower http/command invocations. |
rsigma_enrichment_queue_depth |
gauge | none | Pending enrichment calls (sum across both kinds). Watch this versus max_concurrent_enrichments. |
rsigma_enrichment_http_cache_hits_total |
counter | enricher_id |
HTTP enricher response-cache hits. Mandatory signal for any rate-limited API recipe. |
rsigma_enrichment_http_cache_misses_total |
counter | enricher_id |
HTTP enricher response-cache misses. |
rsigma_enrichment_http_cache_expirations_total |
counter | enricher_id |
HTTP enricher response-cache entries evicted on expiry. |
rsigma_enrichment_mmdb_hits_total |
counter | enricher_id |
MMDB lookups that found a record and, when fields is configured, produced a non-empty projection. |
rsigma_enrichment_mmdb_misses_total |
counter | enricher_id |
MMDB lookups where there was no record for the IP or the projection was empty, whether or not default was injected. |
rsigma_enrichment_mmdb_reloads_total |
counter | database, result (success, failure) |
MMDB reload attempts that reopened a changed file (success) and failed reopens that kept the old reader (failure). An unchanged file is not counted. |
rsigma_enrichment_mmdb_build_epoch_seconds |
gauge | database |
Build epoch from the loaded database’s metadata. Alert on time() - rsigma_enrichment_mmdb_build_epoch_seconds > <max age>. |
rsigma_enrichment_dns_cache_hits_total |
counter | enricher_id |
DNS queries answered from the response cache, including cached negative answers. |
rsigma_enrichment_dns_cache_misses_total |
counter | enricher_id |
DNS queries that went to a nameserver, including every query when caching is disabled. |
rsigma_enrichment_dns_queries_total |
counter | enricher_id, result (answer, no_records, error) |
Upstream DNS query results. answer means at least one record of the queried type; no_records means NXDOMAIN or NODATA; error covers SERVFAIL, refused, I/O, and the resolver’s own timeout. |
The database label is the db_path exactly as configured. Reload and build-epoch metrics are labeled per database rather than per enricher because one database can back several enrichers. Key errors and decode errors are not hits or misses; they appear in rsigma_enrichment_total{status}.
DNS counters are per query, not per enrichment call: an IP lookup counts two queries. A query cut off by the pipeline’s outer enricher timeout never completes, so it is not counted in queries_total; it appears in rsigma_enrichment_total{status="timeout"}. Key errors send no query and are not counted.
The kind label is carried even though enricher_id typically already encodes it (asset_lookup_det vs asset_lookup_corr), so dashboards can compute sum by (kind) without depending on a naming convention.
Alert pipeline (13 metrics)
Exposed when the daemon is built with daemon. The fixed label sets on rsigma_dedup_results_total, rsigma_incidents_emitted_total, and rsigma_incident_overmerge_total, plus the rsigma_dedup_store_entries, rsigma_incidents_open, rsigma_silences_active, and rsigma_inhibit_sources_active gauges, are pre-registered at startup, so they render with their # HELP and # TYPE lines and zeroed series on the first scrape, even before --alert-pipeline is passed or any event fires. The rsigma_inhibited_total{rule} series appears once a rule first inhibits. See the Alert Pipeline guide.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_dedup_results_total |
counter | action (emitted, folded, repeat, resolved) |
Dedup outcomes: first fires emitted, duplicates folded, repeat re-emits, and resolved records. |
rsigma_dedup_store_entries |
gauge | none | Active dedup alerts currently tracked. |
rsigma_dedup_evictions_total |
counter | none | Active alerts evicted after resolving. |
rsigma_dedup_summaries_emitted_total |
counter | none | Dedup summary records emitted (repeat re-emits plus resolved records). |
rsigma_incidents_open |
gauge | none | Open incidents currently tracked by the grouping stage. |
rsigma_incidents_emitted_total |
counter | trigger (group_wait, group_interval, repeat, resolved) |
Incident emissions by trigger. |
rsigma_incident_results_total |
counter | none | Total incident records emitted. |
rsigma_incident_overmerge_total |
counter | guard (stop_value, cardinality_ceiling) |
Entity-graph guard hits that suppressed a join. |
rsigma_silenced_total |
counter | none | Results muted by an active silence. |
rsigma_silences_active |
gauge | none | Currently-active silences. |
rsigma_inhibited_total |
counter | rule |
Results muted by an inhibition rule, by rule name. |
rsigma_inhibit_sources_active |
gauge | none | Currently-active inhibition sources. |
rsigma_inhibit_sources_refused_total |
counter | rule |
Results that would have opened a new inhibition source but were not tracked because max_inhibit_sources or the tenant’s daemon.tenancy.quotas.inhibition_sources was reached, by rule name. Appears once a source is first refused.
Added in v0.25.0 |
rsigma_alert_pipeline_duration_seconds |
histogram | none | Alert-pipeline stage duration in seconds. |
Risk-based alerting (9 metrics)
Exposed when the daemon is built with daemon. The fixed label set on rsigma_risk_annotations_total and rsigma_risk_incidents_emitted_total, plus the rsigma_risk_entities_open and rsigma_risk_state_entries gauges, are pre-registered at startup, so they render with their # HELP and # TYPE lines and zeroed series on the first scrape, even before --risk is passed or any event fires. See the Risk-Based Alerting guide.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_risk_annotations_total |
counter | action (scored, no_entity, skipped) |
Risk-annotation outcomes: scored with entities, scored with no entity, or skipped (out of scope). |
rsigma_risk_annotation_score |
histogram | none | Distribution of the per-detection resolved risk score. |
rsigma_risk_objects_total |
counter | none | Risk objects extracted from firing detections. |
rsigma_risk_entities_open |
gauge | none | Entities currently tracked by the risk accumulator. |
rsigma_risk_state_entries |
gauge | none | Risk contributions currently retained across all entities. |
rsigma_risk_evictions_total |
counter | none | Entities dropped from the accumulator (store full or aged out). |
rsigma_risk_incidents_emitted_total |
counter | trigger (score, tactic_count) |
Risk incidents emitted by trigger. |
rsigma_risk_incident_results_total |
counter | none | Total risk incident records emitted. |
rsigma_risk_layer_duration_seconds |
histogram | none | Risk-layer stage duration in seconds. |
OTLP (3 metrics)
Exposed when the daemon is built with daemon-otlp and an OTLP receiver is active. The labelled counters surface after the first request of that kind.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_otlp_requests_total |
counter | transport (http, grpc), encoding (json, protobuf) |
OTLP export requests received. Gzip is decompressed before the encoding label is recorded. |
rsigma_otlp_log_records_total |
counter | none | Log records ingested via OTLP. |
rsigma_otlp_errors_total |
counter | transport, reason (unsupported_content_type, decompression, body_too_large, decode, channel_closed) |
OTLP request errors. |
TLS (2 metrics)
Exposed when the daemon is built with daemon-tls. Both metrics render with their # HELP and # TYPE lines as soon as TLS is configured, even before the first handshake.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_tls_certificate_expiry_seconds |
gauge | none | Seconds until the active TLS server certificate’s not_after. Signed: negative once expired. Updated at startup and after every successful SIGHUP-triggered reload. |
rsigma_tls_active_connections |
gauge | none | Currently active TLS-terminated connections on the API listener. Decrements on connection close (including handshake failure). |
Field observability (3 metrics)
Exposed unconditionally; values stay at zero unless the daemon was started with --observe-fields. All three refresh on every /metrics scrape and after every successful /api/v1/fields/* call. See HTTP API: Field observability for the matching endpoints.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_fields_observed_total |
counter | none | Total events scanned by the opt-in field observer. Advances regardless of whether the event had structured fields. |
rsigma_fields_observer_unique_keys |
gauge | none | Distinct field names currently tracked. Saturates at --observe-fields-max-keys (default 10000). |
rsigma_fields_observer_overflow_dropped_total |
counter | none | New-key insert attempts dropped because the observer was at capacity. A persistent positive rate signals that --observe-fields-max-keys is too low for the deployment. |
Schema observability (4 metrics)
Exposed unconditionally; values stay at zero unless the daemon was started with --observe-schemas (or --discover-schemas, which implies it). All refresh on every /metrics scrape and on every GET /api/v1/schemas call. See HTTP API: Schema observability for the matching endpoint.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_events_by_schema_total |
counter | schema |
Events classified into each recognized schema (ecs, sysmon, windows_eventlog, cef, ocsf, generic_json, or a user-defined name). |
rsigma_events_unknown_schema_total |
counter | none | Events that matched no schema signature. A rising rate signals a source whose schema RSigma does not recognize; add a signature with --schema-config. |
rsigma_events_ambiguous_schema_total |
counter | none | Events where two different-name signatures tied at the winning specificity, so the name tie-break decided routing. Resolve by giving one signature a distinguishing predicate or a higher specificity. |
rsigma_unknown_schema_clusters |
gauge | none | Distinct clusters of unrecognized event shapes that schema discovery would propose a signature for. Zero unless the daemon was started with --discover-schemas; drives the GET /api/v1/schemas/suggestions endpoint. |
Logsource-aware evaluation (4 metrics)
Exposed unconditionally; values stay at zero unless the daemon was started with --logsource-routing. All refresh on every /metrics scrape. See Logsource-Aware Evaluation.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_rules_pruned_by_logsource_total |
counter | none | Rules skipped because their product conflicts with the event’s logsource, counting both the always-evaluated rules the index’s product partitioning omits and the candidate rules the residual check drops during evaluation. The scaling signal: it rises with the conflicting fraction of a mixed-product ruleset. |
rsigma_events_without_logsource_total |
counter | none | Events with no extractable logsource, evaluated against every rule (fail-open). A high rate means events are not carrying a logsource tag and no static override or field map is set. |
rsigma_schema_rules_eligible |
gauge | schema |
Rules a schema’s events evaluate after logsource pruning. Set when both schema routing and logsource routing are active; refreshed on scrape and reload. |
rsigma_schema_rules_pruned |
gauge | schema |
Rules pruned for a schema by its implied logsource. The higher this is relative to eligible, the less of the ruleset that schema exercises. |
Live event tap (4 metrics)
Exposed unconditionally; values stay at zero unless the tap is enabled (daemon.tap.enabled: true) and an operator opens a session. See HTTP API: Live event tap and rsigma engine tap.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_tap_sessions_total |
counter | none | Total tap sessions opened over the daemon’s lifetime. |
rsigma_tap_active_sessions |
gauge | none | Currently active tap sessions. Bounded by daemon.tap.max_sessions. |
rsigma_tap_events_streamed_total |
counter | none | Events streamed to tap clients. |
rsigma_tap_events_dropped_total |
counter | none | Events dropped from a tap (a full per-session buffer, or an unparseable line in a redacting raw capture). A positive rate means captured fixtures have gaps. |
Live detection tail (2 metrics)
Exposed unconditionally; values stay at zero unless the tail is enabled (daemon.tail.enabled: true) and an operator opens a session. See HTTP API: Live detection tail and rsigma engine tail.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_tail_active_sessions |
gauge | none | Currently active tail sessions. Bounded by daemon.tail.max_sessions. |
rsigma_tail_detections_dropped_total |
counter | none | Detections dropped from a tail because a session buffer was full. A positive rate means a tail client could not keep up. |
Triage feedback loop (4 metrics)
Exposed when the triage feedback loop is enabled (daemon.dispositions.enabled: true or --enable-dispositions). The ingest counters pre-register their fixed label sets so they render with zeroed series on the first scrape; rsigma_rule_false_positive_ratio is absent for a rule until it reaches daemon.dispositions.min_sample. See the Triage Feedback Loop guide and HTTP API: Dispositions.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_rule_false_positive_ratio |
gauge | rule_title |
Per-rule false-positive ratio over the rolling window. Absent until the rule reaches min_sample dispositions. With tenancy enabled, the ratio sums the rule’s dispositions across tenants; per-tenant ratios are in GET /api/v1/dispositions.
Unreleased |
rsigma_dispositions_total |
counter | rule_title, verdict |
Analyst dispositions counted, by rule and verdict (true_positive, false_positive, benign_true_positive). |
rsigma_disposition_ingest_total |
counter | source, result |
Ingest outcomes by source (api, file, http, nats) and result (accepted, duplicate, rejected). |
rsigma_disposition_ingest_errors_total |
counter | reason |
Ingest errors by reason (parse, validation). |
Verdict-driven capture (7 metrics)
Added in v0.22.0Exposed when capture is compiled into the daemon. Counters pre-register their fixed label sets so they render with zeroed series on the first scrape. See Verdict-Driven Corpora.
| Metric | Type | Labels | Description |
|---|---|---|---|
rsigma_capture_incidents_open |
gauge | none | Incidents currently held in the capture ring. |
rsigma_capture_events_held |
gauge | none | Events currently held in the capture ring. |
rsigma_capture_bytes_held |
gauge | none | Encoded event bytes currently held in the capture ring. |
rsigma_capture_evictions_total |
counter | reason |
Ring incident evictions (ring_full, ttl). |
rsigma_capture_events_dropped_total |
counter | reason |
Event drops (event_too_large, incident_event_cap, incident_byte_cap, global_byte_cap, unsupported_result_kind). |
rsigma_capture_spool_jobs_total |
counter | result |
Disposition-bundle outcomes (queued, written, exists, miss, queue_full, io_error). |
rsigma_capture_spool_evictions_total |
counter | reason |
Completed-bundle evictions from the disk budget (budget). |
Scrape configuration
Minimum Prometheus scrape config:
scrape_configs:
- job_name: rsigma
scrape_interval: 15s
static_configs:
- targets: ['rsigma.internal:9090']
15-30 s intervals are reasonable. The histograms use the default prometheus bucket boundaries; alert on the _bucket{le="..."} quantiles you care about rather than the average, which becomes meaningless under bimodal latency.
Useful alerts
groups:
- name: rsigma
rules:
# Engine cannot keep up.
- alert: RsigmaBackPressure
expr: rate(rsigma_back_pressure_events_total[5m]) > 0
for: 10m
labels: {severity: warning}
# Correlation state above 80% of the default 100000 cap.
- alert: RsigmaCorrelationStatePressure
expr: rsigma_correlation_state_entries > 80000
for: 10m
labels: {severity: warning}
# DLQ taking traffic.
- alert: RsigmaDlqVolume
expr: rate(rsigma_dlq_events_total[5m]) > 1
for: 15m
labels: {severity: warning}
# Reloads failing means rules are broken on disk.
- alert: RsigmaReloadsFailing
expr: rate(rsigma_reloads_failed_total[5m]) > 0
for: 10m
labels: {severity: critical}
# Sustained API auth failures: a misconfigured client or a probe.
- alert: RsigmaApiAuthFailures
expr: sum(rate(rsigma_api_auth_failures_total[5m])) > 1
for: 10m
labels: {severity: warning}
# Dynamic source went stale (no successful resolve in 10 minutes).
- alert: RsigmaSourceStale
expr: time() - rsigma_source_last_resolved_timestamp > 600
for: 5m
labels: {severity: warning}
# Enricher consistently failing (timeouts or fetch errors).
- alert: RsigmaEnrichmentFailing
expr: |
sum by (enricher_id) (
rate(rsigma_enrichment_total{status=~"error|timeout"}[5m])
) > 1
for: 10m
labels: {severity: warning}
# TLS certificate expires within 14 days.
- alert: RsigmaTlsCertExpiring
expr: rsigma_tls_certificate_expiry_seconds < 14 * 86400
for: 5m
labels: {severity: warning}
# TLS certificate has already expired.
- alert: RsigmaTlsCertExpired
expr: rsigma_tls_certificate_expiry_seconds < 0
for: 1m
labels: {severity: critical}
Histograms: bucket guidance
| Metric | Typical p50 | Typical p99 | Notes |
|---|---|---|---|
rsigma_event_processing_seconds |
1-30 µs | < 1 ms | Per-event evaluation against the loaded rule set. Spikes correlate with reload events. |
rsigma_pipeline_latency_seconds |
1-100 µs | < 5 ms | From event dequeue to dispatch. Enrichment and sink delivery are not included. |
rsigma_batch_size |
128 | 128 | Default --batch-size 128. Under light load, batches contain only the events already queued and can be smaller. |
event_processing_seconds p99 above 5 ms is usually a sign of misuse (regex-heavy rules without --cross-rule-ac, or many |all modifiers).
See also
- Observability for the broader observability story, including the
tracingevent targets that complement these metrics. - Performance Tuning for which metric to watch when sizing
--buffer-size,--batch-size, or correlationmax_state_entries. - Streaming Detection for how the
/metricsendpoint fits into the broader daemon API. daemon/metricssource for the registry implementation.