Skip to main content

Prometheus Metrics Reference

All backend metrics are created via OpenTelemetry instruments and exported on the /metrics endpoint (port 8080) in Prometheus format. Metrics are defined in backend/internal/observability/metrics.go.

HTTP

MetricTypeLabelsDescription
proxima_http_requests_totalcountermethod, path, statusTotal HTTP requests
proxima_http_request_duration_secondshistogrammethod, pathHTTP request duration in seconds

Auth

MetricTypeLabelsDescription
proxima_auth_login_totalcounterprovider, resultTotal login attempts (result: success, failed, mfa_required)
proxima_auth_token_refresh_totalcounterresultTotal token refresh attempts (result: success, invalid, revoked, expired)
proxima_auth_mfa_verification_totalcounterresultTotal MFA verification attempts (result: success, failed, recovery_code)
proxima_auth_session_revocation_totalcounterreasonTotal session revocations (reason: logout, disabled)
proxima_auth_cache_hit_totalcounterTotal auth cache hits
proxima_auth_cache_miss_totalcounterTotal auth cache misses
proxima_auth_access_resolution_secondshistogramAccess resolution latency in seconds
proxima_auth_lockout_activeupdowncounterCurrently locked out accounts
proxima_auth_password_reset_totalcountertypeTotal password resets (type: admin)
MetricTypeLabelsDescription
proxima_search_query_totalcounterTotal PQL queries
proxima_search_query_duration_secondshistogramEnd-to-end PQL query latency in seconds
proxima_search_results_totalcounterTotal search result rows returned

NATS Workers

MetricTypeLabelsDescription
proxima_nats_messages_received_totalcounterTotal NATS messages received
proxima_nats_messages_processed_totalcounterTotal NATS messages processed
proxima_nats_message_processing_duration_secondshistogramPer-message processing time in seconds

VictoriaMetrics Client

MetricTypeLabelsDescription
proxima_vm_operation_totalcounterTotal VictoriaMetrics API calls
proxima_vm_operation_duration_secondshistogramVictoriaMetrics API call latency in seconds

Tenant Cache

MetricTypeLabelsDescription
proxima_tenantcache_lookup_totalcounterTenant cache hit/miss counter
proxima_tenantcache_lookup_duration_secondshistogramTenant cache lookup latency in seconds

Stale Detector

MetricTypeLabelsDescription
proxima_stale_hosts_marked_offline_totalcounterCumulative hosts marked offline by stale detector

Panic Recovery

MetricTypeLabelsDescription
proxima_api_panic_recovery_totalcounterRecovered panics in HTTP handlers

Change Detection

MetricTypeLabelsDescription
proxima_changes_processed_totalcounterscan_type, event_typeTotal file change events processed
proxima_changes_processing_duration_secondshistogramChange detection message processing duration in seconds
proxima_changes_batch_reassembly_totalcounterstatusBatch reassembly outcomes
proxima_changes_batch_expired_totalcounterExpired incomplete batches discarded
proxima_file_versions_created_totalcounterTotal file versions created

Log Collection

MetricTypeLabelsDescription
proxima_logs_entries_processed_totalcountersourceTotal log entries processed from agents
proxima_logs_processing_duration_secondshistogramLog message processing duration in seconds
proxima_logs_query_totalcounterTotal log queries from frontend
proxima_logs_query_duration_secondshistogramLog query latency in seconds

NATS JWT Lifecycle

MetricTypeLabelsDescription
proxima_install_token_created_totalcounterTotal install tokens created
proxima_jwt_issued_totalcounterTotal NATS user JWTs issued
proxima_jwt_renewed_totalcountermethodTotal NATS user JWTs renewed (method: nats, https)
proxima_jwt_revoked_totalcounterTotal NATS user JWTs revoked
proxima_jwt_credential_challenge_totalcounterstatusTotal credential challenge requests
proxima_jwt_credential_exchange_totalcounterstatusTotal credential exchange requests

Healthcheck

MetricTypeLabelsDescription
proxima_healthcheck_runs_processed_totalcounterscanner, statusTotal healthcheck runs processed
proxima_healthcheck_results_processed_totalcounterstatus, sourceTotal healthcheck results processed
proxima_healthcheck_findings_processed_totalcounterscanner, severity, typeTotal scanner findings processed
proxima_healthcheck_processing_duration_secondshistogramHealthcheck processing duration in seconds
proxima_healthcheck_trigger_totalcounterTotal healthcheck triggers via API
proxima_healthcheck_score_calculatedhistogramDistribution of calculated healthcheck scores (0–100)

Compliance

MetricTypeLabelsDescription
proxima_compliance_evaluations_totalcounterframework, statusTotal control evaluations performed
proxima_compliance_evaluation_duration_secondshistogramTime to evaluate all controls for one host
proxima_compliance_rollup_duration_secondshistogramTime to compute environment/client rollups
proxima_compliance_controls_totalupdowncounterCurrent control status distribution

Alerting

MetricTypeLabelsDescription
proxima_alerts_resolved_totalcounterTotal alert groups resolved

Credentials

MetricTypeLabelsDescription
proxima_credential_operations_totalcounteroperation, statusTotal credential CRUD operations (operation: create, list, get, update, delete, test)
proxima_credential_operation_duration_secondshistogramCredential operation duration
proxima_credential_encrypt_totalcountercredential_typeTotal Vault Transit encrypt operations
proxima_credential_decrypt_totalcountercredential_id, credential_typeTotal Vault Transit decrypt operations
proxima_credential_test_totalcountercredential_type, successTotal credential connectivity tests
proxima_credential_rotation_totalcounterTotal credential secret rotations

Config Sync

MetricTypeLabelsDescription
proxima_configsync_push_totalcounterTotal config push operations to agents
proxima_configsync_push_duration_secondshistogramConfig push duration
proxima_configsync_apply_totalcounterconfig_type, statusTotal config apply acks from agents
proxima_configsync_resolve_totalcounterconfig_typeTotal config resolution operations
proxima_configsync_resolve_duration_secondshistogramConfig resolution duration

Database

MetricTypeLabelsDescription
proxima_db_connections_opengauge (observable)Number of open database connections
proxima_db_connections_idlegauge (observable)Number of idle database connections

Business

MetricTypeLabelsDescription
proxima_agents_online_totalgauge (observable)Number of agents currently online
proxima_hosts_totalgauge (observable)Total number of hosts

Terminal

MetricTypeLabelsDescription
proxima_terminal_sessions_totalcounterlogin, roleTotal sessions started
proxima_terminal_sessions_activeupdowncounterCurrently active sessions
proxima_terminal_session_duration_secondshistogramend_reasonSession duration
proxima_terminal_auth_denied_totalcounterlogin, roleRBAC denials
proxima_terminal_errors_totalcounterSession errors
proxima_terminal_peers_activeupdowncounterCurrently connected session peers (session sharing)
proxima_terminal_peer_joins_totalcounterTotal peer join events
proxima_terminal_file_transfer_totalcounterdirection, statusTotal terminal file transfers
proxima_terminal_file_transfer_bytes_totalcounterdirectionTotal bytes transferred via terminal file transfer
proxima_terminal_file_transfer_duration_secondshistogramdirectionTerminal file transfer duration in seconds

Fleet

MetricTypeLabelsDescription
proxima_fleet_rollouts_totalcounterstatus (created/paused/completed/aborted)Rollout lifecycle transitions
proxima_fleet_rollouts_activegaugeCurrently active rollouts
proxima_fleet_agent_updates_totalcounterstatus (sent/healthy/failed/timed_out/skipped_offline)Per-agent update transitions
proxima_fleet_update_duration_secondshistogramRollout duration from start to terminal status
proxima_fleet_auth_denied_totalcounterTenant/scope denials on rollout requests

AI Chat & MCP

MetricTypeLabelsDescription
proxima_chat_messages_totalcounterroleTotal chat messages
proxima_chat_tokens_totalcountermodel, direction (input/output)Total tokens consumed
proxima_chat_cost_usd_totalcountermodelEstimated AI cost in USD
proxima_chat_tool_calls_totalcountertoolTotal MCP tool calls from chat
proxima_chat_tool_duration_secondshistogramtoolTool call duration
proxima_chat_response_duration_secondshistogramFull chat response duration
proxima_chat_model_routing_totalcountertier, reasonModel routing decisions
proxima_chat_conversations_activeupdowncounterActive conversations
proxima_chat_errors_totalcountererror_typeChat errors
proxima_chat_credential_source_totalcountersourceAI credential source usage

L1 Incident Agent

MetricTypeLabelsDescription
proxima_l1_triage_tokens_totalcounterTokens consumed by unattended L1 triage runs
proxima_l1_triage_cost_usd_totalcounterLLM cost in USD for unattended L1 triage runs
proxima_l1_engage_tokens_totalcounterTokens consumed by reactive L1 engage (listening-bot) runs
proxima_l1_engage_cost_usd_totalcounterLLM cost in USD for reactive L1 engage runs
proxima_escalation_steps_totalcounterclient_idEscalation groups advanced one step by the timer worker
proxima_escalation_drift_totalcounterShadow-poll on-call drift events

Runbook Execution

MetricTypeLabelsDescription
proxima_runbook_executions_totalcounterstatusRunbook executions that reached a terminal state
proxima_runbook_dispatched_totalcountertrigger_sourceRunbook executions dispatched to agents
proxima_runbook_executions_timed_out_totalcounterExecutions force-failed by the watchdog for exceeding their timeout
proxima_runbook_watchdog_errors_totalcounterWatchdog DB errors while sweeping for stale executions

Trace Ingest

MetricTypeLabelsDescription
proxima_trace_ingest_totalcounterresult (ok/malformed/forward_error)Agent trace batches ingested
proxima_trace_ingest_spans_totalcounterAgent spans forwarded to Tempo

Agent

MetricTypeLabelsDescription
proxima_agent_selflogs_ingested_totalcounterresult (ok/error)Agent self-log entries forwarded to the ops VictoriaLogs tenant (account 0)
agent_healthcheck_last_findingsgaugeagent_version, hostnameFindings count from last scan

All metrics follow OpenMetrics naming conventions with the proxima_ prefix for backend metrics and agent_ prefix for agent-side metrics.

note

This reference covers the primary subsystems. The backend registers additional metrics for other subsystems (JSM, OIDC, ClickHouse, email, Kubernetes sync, service desk, tunnel/transport, briefing, and more). The authoritative list is always the /metrics endpoint and the backend/internal/observability/metrics_*.go registration files.