Metrics reference
The Prometheus metrics the DefenseClaw gateway exports, with their types, units and labels, as the bundled Grafana dashboards query them.
This page lists the metrics the gateway exports over OTLP and the names they get in Prometheus, so you can build your own panels and alerts. The Grafana dashboard catalog shows which board uses which metric. Model cost and token metrics are explained in more depth in Tokenomics.
How names and labels map
- A dot in a metric name becomes an underscore:
defenseclaw.queue.depthisdefenseclaw_queue_depth. - Prometheus adds the unit to the name when there is one:
_milliseconds,_seconds,_bytes,_nanoseconds, and_ratiofor a gauge whose unit is a plain number. A unit that only counts things, such as{hook}, adds nothing. - A counter ends in
_total. A histogram has_bucket,_sumand_countseries. - An up/down counter shows as a gauge.
- Labels are the short names the bundled dashboards filter on (
connector,scanner,rule_id,severity). The gateway's own Prometheus endpoint and an OTLP destination namedlocal-observabilityuse them. An OTLP destination with any other name exports longer canonical label names. See Run Grafana locally. - Sandbox names, request IDs, session IDs and people are never metric labels.
- A metric appears in Prometheus only after the gateway has recorded something for it, so a quiet system shows fewer series than this page lists. A metric listed with no labels exports none on the short-label destination.
AI discovery
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_ai_components_installs | gauge | install | ecosystem, name | Distinct install evidences per component as of the last scan. |
defenseclaw_ai_components_observations_total | counter | observation | ecosystem, identity_band, name, presence_band | Confidence results per component; one count for each scan that produced a result for it. |
defenseclaw_ai_components_workspaces | gauge | workspace | ecosystem, name | Distinct workspaces a component appears in as of the last scan. |
defenseclaw_ai_confidence_identity_score | histogram | none | ecosystem, framework, name | Identity confidence score in [0,1] per component, per scan. |
defenseclaw_ai_confidence_presence_score | histogram | none | ecosystem, framework, name | Presence confidence score in [0,1] per component, per scan. |
defenseclaw_ai_discovery_active_signals | gauge | signal | privacy_mode, source | Latest active AI usage signal count. |
defenseclaw_ai_discovery_dedupe_suppressed_total | counter | signal | privacy_mode, result, source | Duplicate AI discovery signals suppressed within a scan. |
defenseclaw_ai_discovery_duration_milliseconds | histogram | ms | privacy_mode, result, source | Wall-clock duration of continuous AI discovery scans. |
defenseclaw_ai_discovery_errors_total | counter | error | detector, reason | Continuous AI discovery detector errors by bounded detector/reason. |
defenseclaw_ai_discovery_files_scanned_total | counter | file | privacy_mode, result, source | Package manifest and shell history files inspected by continuous AI discovery. |
defenseclaw_ai_discovery_gone_signals_total | counter | signal | ai_product, ai_vendor, confidence, detector, privacy_mode, result, signal_category, source, state | AI usage signals that disappeared from a full scan. |
defenseclaw_ai_discovery_new_signals_total | counter | signal | ai_product, ai_vendor, confidence, detector, privacy_mode, result, signal_category, source, state | New or changed AI usage signals discovered. |
defenseclaw_ai_discovery_runs_total | counter | run | privacy_mode, result, source | Continuous AI discovery scans completed by the gateway. |
defenseclaw_ai_discovery_signals_total | counter | signal | ai_product, ai_vendor, confidence, detector, signal_category, state | AI usage signals observed by category/vendor/product/state. |
Admission
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_admission_decisions_total | counter | decision | decision, source, target_type | Admission gate decisions |
Agent Substrate
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_substrate_first_hook_after_resume_milliseconds | histogram | ms | none | Time the first hook call takes after an actor resumes; no identity labels. |
defenseclaw_substrate_hook_rtt_milliseconds | histogram | ms | none | Hook call time measured by the gateway, from request received to response written; recorded only by the gateway, never by the actor kit; no identity labels. |
defenseclaw_substrate_idle_suspends_total | counter | suspend | none | Actors suspended by DefenseClaw for being idle; no identity labels. |
defenseclaw_substrate_leader_observe_latency_milliseconds | histogram | ms | none | Time a stateless gateway waits for the leader to record a stateful observation; no identity labels. |
defenseclaw_substrate_policy_conflicts_total | counter | conflict | none | Actors the controller marked policy_conflict after three reverts in ten minutes of a foreign egress policy change; no identity labels. |
defenseclaw_substrate_policy_lag_seconds | histogram | s | none | Time from a policy or profile change to the egress policy being active on Agent Substrate; no identity labels. |
defenseclaw_substrate_rate_limited_total | counter | request | none | Calls refused by the per-actor or per-atespace fair-share limit, counted in total; no identity labels. |
defenseclaw_substrate_unattested_templates | gauge | template | none | Agent Substrate templates DefenseClaw has seen without a valid attestation; no identity labels. |
Agents
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_agent_discovery_duration_milliseconds | histogram | ms | cache_hit, result, source | Wall-clock duration of the CLI local agent discovery scan. |
defenseclaw_agent_discovery_errors_total | counter | error | connector, reason | Version probe or discovery errors by connector and bounded reason. |
defenseclaw_agent_discovery_installed_ratio | gauge | none | connector | Latest discovered installed state for each connector (1 installed, 0 not installed). |
defenseclaw_agent_discovery_runs_total | counter | run | cache_hit, result, source | On-demand local agent discovery reports accepted by the gateway, by source/cache/result. |
defenseclaw_agent_discovery_signals_total | counter | signal | connector, has_binary, has_config, installed, probe_status | Per-connector install signals reported by agent discovery. |
defenseclaw_agent_last_seen_seconds | gauge | s | connector, gen_ai_agent_type | Unix seconds when an agent lifecycle transition was last observed. |
defenseclaw_agent_lifecycle_transitions_total | counter | transition | connector, gen_ai_agent_type | Agent lifecycle transitions by stable identity, execution, event, and state. |
defenseclaw_agent_phase_current_ratio | gauge | none | connector | Current execution phase encoded as a stable integer for state timelines. |
defenseclaw_agent_phase_transitions_total | counter | transition | connector | Directed execution phase transitions by stable agent identity and execution. |
defenseclaw_agent_reported_cost_USD | gauge | USD | connector | Latest upstream-reported cumulative agent cost in USD; absent when the connector does not report cost. |
defenseclaw_agent_token_usage_total | counter | token | connector, kind | Connector-reported input and output tokens attributed to an agent tree. |
Alert
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_alert_count_total | counter | alert | alert_severity, alert_source, alert_type, connector | Total runtime alerts emitted |
Approval
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_approval_count_total | counter | request | auto, dangerous, result | Exec approval requests processed |
defenseclaw_approval_lifecycle_total | counter | event | result, surface, connector | Approval lifecycle events processed across interactive surfaces |
Audit events and sinks
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_audit_db_errors_total | counter | error | operation | SQLite audit store operation failures |
defenseclaw_audit_events_total | counter | event | action, connector, severity | Total audit events persisted |
defenseclaw_audit_sink_batches_delivered_total | counter | batch | kind, retry_count, sink, status_code | Audit sink batches acknowledged by remote |
defenseclaw_audit_sink_batches_dropped_total | counter | batch | kind, retry_count, sink, status_code | Audit sink batches dropped due to queue or circuit breaker |
defenseclaw_audit_sink_circuit_state_ratio | up/down counter | none | sink_kind, sink_name | Audit sink circuit breaker state (0=closed, 1=open, 2=half-open) |
defenseclaw_audit_sink_delivery_latency_milliseconds | histogram | ms | kind, retry_count, sink, status_code | Audit sink per-batch delivery latency |
defenseclaw_audit_sink_failures_total | counter | failure | sink_kind, sink_name, sink_reason | Audit sink send failures by sink kind |
defenseclaw_audit_sink_queue_depth | up/down counter | event | sink_kind, sink_name | Audit sink in-memory queue depth |
Cisco
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_cisco_errors_total | counter | error | code | Cisco AI Defense inspect errors by code |
Cisco inspect
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_cisco_inspect_latency_milliseconds | histogram | ms | outcome | Cisco AI Defense HTTP inspect round-trip latency |
Codex
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_codex_notify_total | counter | event | result, status, type | Codex notify events received via the notify-bridge shim, labelled by type/status |
defenseclaw_codex_notify_malformed_total | counter | event | type | Codex notify payloads that failed to parse |
Config
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_config_load_errors_total | counter | error | error_type | Configuration load or validation errors |
Egress
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_egress_events_total | counter | event | branch, decision, source, connector | Egress requests classified by Layer 1 shape detection (branch=known|shape|passthrough) |
Gateway
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_gateway_errors_total | counter | error | error_code, error_subsystem | Structured gateway errors by subsystem/code |
defenseclaw_gateway_events_emitted_total | counter | event | event_type, severity | Gateway events written through the writer choke point |
defenseclaw_gateway_forwarded_headers_total | counter | header | path, result | Inbound HTTP headers forwarded from the agent to the upstream LLM provider (path=chat-completions|passthrough, result=ok|rejected_invalid|rejected_overflow) |
defenseclaw_gateway_judge_errors_total | counter | error | judge_kind, judge_reason | LLM judge errors (provider, parse, or empty response) |
defenseclaw_gateway_judge_invocations_total | counter | invocation | judge_action, judge_kind, judge_severity | LLM judge invocations by kind/action |
defenseclaw_gateway_judge_latency_milliseconds | histogram | ms | judge_kind | LLM judge invocation latency |
defenseclaw_gateway_verdicts_total | counter | verdict | destination_app, policy_id, verdict_action, verdict_severity, verdict_stage | Guardrail verdicts emitted per stage/action/severity |
Gateway HTTP
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_http_auth_failures_total | counter | failure | reason | HTTP authentication failures by route + reason |
defenseclaw_http_rate_limit_breaches_total | counter | breach | client_kind | HTTP rate limit breaches by route |
defenseclaw_http_request_count_total | counter | request | http_method, http_status_code | Total HTTP requests to the gateway API |
defenseclaw_http_request_duration_milliseconds | histogram | ms | http_method, http_status_code | HTTP request duration distribution |
Gateway runtime
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_runtime_fd_in_use | gauge | fd | none | File descriptors currently held by the gateway |
defenseclaw_runtime_gc_pause_nanoseconds | histogram | ns | none | Go GC pause sample (P99 of recent pauses per tick) |
defenseclaw_runtime_goroutines | gauge | goroutine | none | Current goroutine count |
defenseclaw_runtime_heap_alloc_bytes | gauge | By | none | Current heap allocation in bytes |
defenseclaw_runtime_heap_objects | gauge | object | none | Live heap objects (runtime.MemStats.HeapObjects) |
Guardrail
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_guardrail_evaluations_total | counter | evaluation | guardrail_action_taken, guardrail_connector, guardrail_scanner | Total guardrail evaluations performed |
defenseclaw_guardrail_judge_fallbacks_total | counter | fallback | guardrail_connector, reason | Hook checks the rules decided because the LLM judge timed out, failed, was late for the answer, was at capacity or had no budget left |
defenseclaw_guardrail_judge_latency_milliseconds | histogram | ms | judge_kind | LLM judge invocation latency (cache miss path includes model round-trip) |
defenseclaw_guardrail_latency_milliseconds | histogram | ms | guardrail_connector, guardrail_scanner | Guardrail evaluation latency distribution |
defenseclaw_guardrail_parser_uncertainty_total | counter | uncertainty | guardrail_connector | Trusted-action argument or parser uncertainty encountered during projection |
Hook
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_hook_deadline_outcomes_total | counter | call | outcome | Hook calls that ran out of their answer budget: deadline_deny (the hook blocked the call), late_allow (the call ran unchecked after the budget), shed (refused by the admission limits) |
Hook connectors
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_connector_hook_invocations_total | counter | hook | connector, event_type, reason, result | Connector hook invocations observed by the gateway. |
defenseclaw_connector_hook_latency_milliseconds | histogram | ms | connector, event_type, reason, result | Connector hook handler latency. |
defenseclaw_connector_hook_outcome_total | counter | decision | action, connector, event_type, severity, would_block | Connector hook outcomes labelled by action, severity, and would_block. |
defenseclaw_connector_hook_tokens_total | counter | token | connector, kind, model | Token usage attributable to connector hook invocations. Split by kind=prompt|completion|total. |
defenseclaw_connector_hook_unified_dispatch_total | counter | invocation | connector | Count of hook invocations routed through the unified hook collector, by connector. |
Inspection
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_inspect_evaluations_total | counter | evaluation | action, connector, severity, tool | Tool/message inspect evaluations |
defenseclaw_inspect_latency_milliseconds | histogram | ms | connector, tool | Tool/message inspect latency distribution |
Inventory
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_inventory_ide_plugins | gauge | plugin | defenseclaw_ide_product, defenseclaw_ide_plugin_ai, defenseclaw_ide_plugin_enabled | IDE extensions and plugins installed as of the last inventory scan, per IDE product, AI flag and enabled state. |
defenseclaw_inventory_mcp_tool_events_total | counter | event | none | MCP tool listing and inventory export attempts by bounded stage, outcome, and reason. |
Judge
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_judge_persist_batch_size | histogram | row | none | Rows committed per judge-persistence transaction |
defenseclaw_judge_persist_drops_total | counter | drop | reason | Judge bodies dropped before persistence (queue full) |
defenseclaw_judge_persist_queue_depth | gauge | item | none | Current depth of the async judge-persistence queue |
Kernel
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_kernel_events_total | counter | event | owner, outcome, control | Kernel events of Tetragon policies the gateway recorded, by policy owner, outcome and control. |
defenseclaw_kernel_state | gauge | host | helper_mode, approval, paused, backend, tetragon_installed | The kernel controls' state on this host, one series per state (value 1), every cycle. |
Llm bridge
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_llm_bridge_latency_milliseconds | histogram | ms | status | LiteLLM bridge call latency (Python subprocess) |
Local database
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_sqlite_busy_retries_total | counter | event | operation | SQLite SQLITE_BUSY events by operation |
defenseclaw_sqlite_checkpoint_duration_milliseconds | histogram | ms | none | SQLite PRAGMA wal_checkpoint(PASSIVE) duration |
defenseclaw_sqlite_db_bytes | gauge | By | none | SQLite main database file size |
defenseclaw_sqlite_freelist_count | gauge | page | none | SQLite PRAGMA freelist_count |
defenseclaw_sqlite_page_count | gauge | page | none | SQLite PRAGMA page_count |
defenseclaw_sqlite_wal_bytes | gauge | By | none | SQLite WAL file size |
Managed aid
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_managed_aid_fail_open_decisions_total | counter | decision | reason | Managed AI Defense inspections that allowed because inspection was unwired, unavailable, had no content, or returned an unknown fail-open reason |
Model calls (gen_ai)
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
gen_ai_client_operation_duration_seconds | histogram | s | none | GenAI operation duration. |
gen_ai_client_token_usage | histogram | token | none | Number of input and output tokens used. |
Model cost and tokens
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_model_cost_USD_total | counter | USD | connector, provider, model, route_decision, call_role, profile | USD cost of model calls; calls with no known cost add nothing |
defenseclaw_model_cost_baseline_USD_total | counter | USD | connector, provider, model, route_decision, call_role, profile | USD the same calls would have cost on the model the client asked for; a call is counted only when both that price and its own cost are known |
defenseclaw_model_cost_compared_USD_total | counter | USD | connector, provider, model, route_decision, call_role, profile | USD actually spent on the calls that also count in defenseclaw.model.cost.baseline, so the two compare like for like |
defenseclaw_model_tokens_total | counter | token | connector, provider, model, route_decision, call_role, profile, kind | Disjoint token counts of model calls by kind (input uncached, cache_read, cache_creation, output without reasoning, reasoning) |
defenseclaw_tokenomics_dropped_total | counter | record | none | Usage records lost before they were counted: the bounded queue was full, or the local store reached its bucket or row cap |
Operator activity
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_activity_diff_entries | histogram | entry | action, actor, target_type | Number of changes in each recorded operator change |
defenseclaw_activity_total | counter | activity | action, actor, target_type | Operator mutations recorded |
Otel
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_otel_ingest_bytes_total | counter | By | connector, signal, source | Total OTLP body bytes received by the connector ingest receiver, by signal/source |
defenseclaw_otel_ingest_last_seen_ts_seconds | gauge | s | connector, signal, source | Unix-seconds timestamp of the most recent OTLP-HTTP batch accepted from a given source/signal. Used by the ConnectorTelemetrySilent alert. |
defenseclaw_otel_ingest_malformed_total | counter | request | connector, signal, source | OTLP-JSON bodies that failed to parse, by signal/source |
defenseclaw_otel_ingest_records_total | counter | record | connector, signal, source | Leaf records (logRecords|dataPoints|spans) extracted from inbound OTLP-JSON batches by signal/source |
defenseclaw_otel_ingest_requests_total | counter | request | connector, result, signal, source | OTLP-HTTP requests accepted by the connector ingest receiver, by signal/source/result |
Panics
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_panics_total | counter | panic | subsystem | Recovered panics by subsystem |
Policy
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_policy_bundle_applies_total | counter | apply | bundle_result, bundle_error_code | Signed policy bundle receipts that ended confirmed or failed, by result and error code. |
defenseclaw_policy_bundle_version | gauge | version | none | Version of the signed policy bundle the standalone managed device enforces. |
defenseclaw_policy_evaluations_total | counter | evaluation | policy_domain, policy_verdict | Total OPA policy evaluations per domain |
defenseclaw_policy_latency_milliseconds | histogram | ms | policy_domain | OPA policy evaluation latency distribution |
defenseclaw_policy_reloads_total | counter | reload | policy_status | Total OPA policy reload events |
Process
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_process_uptime_seconds | gauge | s | none | Sidecar process uptime |
Provenance
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_provenance_bumps_total | counter | bump | reason | Monotonic provenance generation bumps |
Quarantine
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_quarantine_actions_total | counter | action | quarantine_op, quarantine_result | Filesystem quarantine and restore operations |
Queues
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_queue_depth | gauge | item | capacity, queue | Current depth of a buffered queue |
defenseclaw_queue_drops_total | counter | drop | queue, reason | Events dropped due to full queue or backpressure |
defenseclaw_queue_oldest_age_milliseconds | gauge | ms | queue | Age of the oldest queued write |
Redaction
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_redaction_applied_total | counter | redaction | detector, field | Guardrail/egress redactions applied by detector/field |
Routing
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_budget_limit_USD | gauge | USD | budget_id, scope, period | Limit of one routing budget in USD |
defenseclaw_budget_peak_subject_spend_USD | gauge | USD | budget_id, scope, period | Highest single-subject spend of one routing budget in the current window |
defenseclaw_budget_spend_USD | gauge | USD | budget_id, scope, period | Spend of one routing budget in the current window (every subject added); absent while the budget spend is still loading |
defenseclaw_budget_store_healthy | gauge | state | none | 1 when the last sync with the fleet budget store worked, 0 when it or the last push failed |
defenseclaw_budget_store_sync_age_seconds | gauge | s | none | Seconds since this device last read the fleet budget store |
defenseclaw_budget_subjects_exceeded | gauge | subject | budget_id, scope, period | Subjects of one routing budget at or over its limit in the current window |
defenseclaw_semantic_routing_decision_total | counter | decision | result, error_code, decision, connector, route_source, route_category, filtered_by, listener, deny_reason, budget_id | Per-request semantic routing decision (result=applied|fallback|denied, error.code=closed failure class, decision=override|default, plus the route source, category, filter, listener, refusal class and budget id) |
defenseclaw_semantic_routing_latency_milliseconds | histogram | ms | result, error_code | Semantic routing classification latency in milliseconds |
Sandboxes
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_sandbox_active | gauge | sandbox | connector | Sandboxes currently provisioning, starting, ready, or stopping, per harness connector. |
defenseclaw_sandbox_managed_asks_total | counter | ask | result, reason, profile, driver, connector | Managed sandbox asks decided by the gateway, by result, reason, guardrail profile, driver and harness connector; no user or sandbox label. |
defenseclaw_sandbox_managed_drift_total | counter | drift | field, profile, driver, connector | OpenShell settings drift found on a managed sandbox, by setting, guardrail profile, driver and harness connector; no user or sandbox label. |
defenseclaw_sandbox_managed_foreign_items_total | counter | item | kind, action, profile, driver, connector | Foreign sandboxes, containers and network rules found on a managed host, by kind, action, guardrail profile, driver and harness connector; no user or sandbox label. |
defenseclaw_sandbox_managed_provisional_total | counter | resolution | result, profile, driver, connector | Provisional managed sandbox resolutions (registered on the offline floor, or resolved once the directory lookup answered), by result, guardrail profile, driver and harness connector; no user or sandbox label. |
defenseclaw_sandbox_managed_refusals_total | counter | refusal | reason, profile, driver, connector | Managed sandbox refusals (host run refused, sandbox unavailable, access refused) by reason, guardrail profile, driver and harness connector; no user or sandbox label. |
defenseclaw_sandbox_transitions_total | counter | transition | connector | Sandbox lifecycle phase transitions by harness connector and phase pair. |
Scanner
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_scanner_queue_depth | up/down counter | scan | scanner | Pending scanner jobs queued ahead of execution |
Scans
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_scan_count_total | counter | scan | scanner, target_type, verdict | Total number of scans completed |
defenseclaw_scan_duration_milliseconds | histogram | ms | scanner, target_type | Scan duration distribution |
defenseclaw_scan_errors_total | counter | error | error_type, scanner, target_type | Scanner invocations that failed (crash, timeout, not found) |
defenseclaw_scan_findings_total | counter | finding | connector, scanner, severity, target_type | Total findings across all scans |
defenseclaw_scan_findings_by_rule_total | counter | finding | connector, rule_id, scanner, severity | Findings grouped by scanner + rule_id + severity |
defenseclaw_scan_findings_gauge | up/down counter | finding | severity, target_type | Current open finding count |
Schema
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_schema_violations_total | counter | event | code, event_type | Gateway events dropped by the runtime JSON-schema gate |
Slo
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_slo_block_latency_milliseconds | histogram | ms | target_type | Admission-block enforcement latency (SLO target: < 2000ms) |
defenseclaw_slo_tui_refresh_milliseconds | histogram | ms | panel | TUI panel refresh latency (SLO target: < 5000ms) |
Stream
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_stream_bytes_sent_bytes | histogram | By | outcome | Bytes sent on an SSE/stream before close |
defenseclaw_stream_duration_ms_milliseconds | histogram | ms | outcome | Wall-clock duration of an SSE/stream from open to close |
defenseclaw_stream_lifecycle_total | counter | transition | outcome, transition | SSE/stream lifecycle transitions (open/close) per route/outcome |
Telemetry exporter
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_telemetry_destination_exports_total | counter | span | destination, outcome, signal | Spans attempted, delivered, rejected, or failed by a named OTLP destination |
defenseclaw_telemetry_destination_spans_total | counter | span | destination, outcome, reason | Spans accepted or dropped by a named telemetry destination profile |
defenseclaw_telemetry_exporter_errors_total | counter | error | exporter, reason, signal | OTel exporter or SDK errors by signal |
defenseclaw_telemetry_exporter_last_export_ts_seconds | gauge | s | exporter, signal | Unix seconds of last successful metric export |
Tool calls
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_tool_calls_total | counter | call | dangerous, tool_provider | Total tool calls observed |
defenseclaw_tool_duration_milliseconds | histogram | ms | tool_provider | Tool call duration distribution |
defenseclaw_tool_errors_total | counter | error | exit_code | Tool calls that returned non-zero exit codes |
Tui
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_tui_filter_applied_total | counter | filter | filter_type, panel | TUI panel filter applications (operator changed a filter chip or search) |
Watcher
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_watcher_errors_total | counter | error | none | Filesystem watcher errors |
defenseclaw_watcher_events_total | counter | event | connector, event_type, target_type | Filesystem watcher events observed |
defenseclaw_watcher_restarts_total | counter | restart | none | Watcher or gateway reconnection events |
Webhook
| Prometheus name | Type | Unit | Labels | What it records |
|---|---|---|---|---|
defenseclaw_webhook_circuit_breaker_total | counter | transition | state, webhook_target_hash | Webhook circuit breaker open/close transitions |
defenseclaw_webhook_cooldown_suppressed_total | counter | event | webhook_kind | Webhook dispatches suppressed by per-endpoint cooldown |
defenseclaw_webhook_dispatches_total | counter | dispatch | outcome, webhook_kind | Webhook dispatches attempted by webhook kind |
defenseclaw_webhook_failures_total | counter | failure | outcome, webhook_kind | Webhook dispatch failures by webhook kind + reason |
defenseclaw_webhook_latency_milliseconds | histogram | ms | http_status_code, webhook_kind, webhook_target_hash | Webhook dispatch latency distribution |
Agent span metrics
The local collector also turns agent spans into metrics: defenseclaw_agent_span_calls_total counts spans, and defenseclaw_agent_span_duration_milliseconds (with _bucket, _sum and _count) records how long they took. Their labels follow the span attributes, for example the connector and the operation name. They exist where the collector is set up this way, as in the local Grafana stack.
Grafana dashboard catalog
A complete map of the DefenseClaw Grafana dashboards, which telemetry backend each board uses, how drill-downs connect, and how to interpret empty panels.
Tokenomics
See what every model call used and cost from your own price table: the usage record, cost formula, metrics and labels, and who can see usage.