# OpenCTI metrics

> The observability metrics OpenCTI exposes in this version and the usage telemetry it sends, generated from the OpenCTI source code.

- URL: https://filigran.io/docs/reference/opencti/metrics/
- Products: OpenCTI 7.261119.0
- For: developers, platform engineers, administrators
- Type: Reference
- Generated from the OpenCTI 7.261119.0 source code

**Diagram: OpenCTI exports observability metrics to your own monitoring, and its usage telemetry goes only to Filigran**

- OpenCTI: Platform (Metrics on with app:telemetry:metrics:enabled), Telemetry manager (Usage gauges on its own meter)
- Your monitoring: Prometheus (Scrapes /metrics on its port), OTLP collector (Receives a push every second)
- Filigran: telemetry.filigran.io (Usage telemetry)

Connections:

- Platform → Prometheus: exposes
- Platform → OTLP collector: pushes
- Platform → Telemetry manager: usage counts
- Telemetry manager → telemetry.filigran.io: sends

The 14 OpenTelemetry metrics OpenCTI 7.261119.0 exposes to monitor a deployment, with the attributes each data point carries. Turn them on and collect them as [Metrics](https://filigran.io/docs/deploy/operate/metrics/) explains.

## Observability metrics {#observability-metrics}

The platform exports these metrics when `app:telemetry:metrics:enabled` is `true`, to an OTLP endpoint (`app:telemetry:metrics:exporter_otlp`) or on a Prometheus port (`app:telemetry:metrics:exporter_prometheus`). It also exports the Node.js runtime metrics of the `opentelemetry-node-metrics` library, with no prefix: their names come from the library, not from the OpenCTI code.

| Metric | Kind | Unit | Description | Attributes |
| --- | --- | --- | --- | --- |
| `opencti_api_direct_bulk` | Gauge | Not set | Size of bulks for direct absorption | `type` |
| `opencti_api_errors` | Counter | Not set | Counts total number of errors | `name`, `operation`, `status`, `type`, `user_agent` |
| `opencti_api_latency` | Histogram | milliseconds (not declared) | Latency computing per query | `name`, `operation`, `status`, `type`, `user_agent` |
| `opencti_api_migration_duration` | Histogram | `s` | Duration of each migration | `opencti.migration.status`, `opencti.migration.title` |
| `opencti_api_requests` | Counter | Not set | Counts total number of requests | `name`, `operation`, `status`, `type`, `user_agent` |
| `opencti_api_side_bulk` | Gauge | Not set | Size of bulk for absorption impacts | `type` |
| `opencti_dependency_up` | Gauge | Not set | Connectivity state of a platform dependency (1 up, 0 down) | `dependency` |
| `opencti_elasticsearch_used_size_bytes` | Gauge | bytes (not declared) | Total Elasticsearch/OpenSearch primary store size, replicas excluded | None |
| `opencti_ingestion_deduplication` | Counter | Not set | Counts imports checked against a deduplication rule, skipped or imported | `opencti.deduplication.result`, `opencti.entity.type` |
| `opencti_lock_acquire_wait` | Histogram | milliseconds (not declared) | Lock acquisition wait time in milliseconds | None |
| `opencti_lock_contentions` | Counter | Not set | Counts lock acquisitions that needed more than one attempt | None |
| `opencti_queue_consumers` | Gauge | Not set | Number of active consumers on the push queues, per connector type | `connector_type` |
| `opencti_sent_email` | Counter | Not set | Counts total number of email sent | `category`, `identifier` |
| `opencti_storage_used_size_bytes` | Gauge | bytes (not declared) | Total size of the files stored by the platform, summed from their indexed size | None |

## Usage telemetry sent to Filigran {#usage-telemetry-sent-to-filigran}

These gauges are not observability metrics: the telemetry manager sends them to Filigran on its own meter provider, never to the exporters above. [Usage telemetry and privacy](https://filigran.io/docs/opencti/configure/telemetry/) explains what is sent and how to stop it.

| Metric | Kind | Unit | Description | Attributes |
| --- | --- | --- | --- | --- |
| `opencti_active_connectors_by_identity` | Gauge | `count` | Active connectors broken down by catalog identity (slug, managed, type) | Set at run time, one data point per item |
| `opencti_active_connectors_count` | Gauge | `count` | Number of active connectors | None |
| `opencti_active_drafts_count` | Gauge | `count` | Number of active drafts | None |
| `opencti_active_workbenches_count` | Gauge | `count` | Number of active workbenches | None |
| `opencti_ai_insight_request_count` | Gauge | `count` | AI Insights requests broken down by cache state (hit, miss) | Set at run time, one data point per item |
| `opencti_ask_ai_query_count` | Gauge | `count` | Ask AI queries broken down by feature | Set at run time, one data point per item |
| `opencti_call_dissemination` | Gauge | `count` | Dissemination feature usage | None |
| `opencti_call_nlq` | Gauge | `count` | NLQ feature usage | None |
| `opencti_capabilities_in_draft_tab_loaded_count` | Gauge | `count` | Number of times the capabilities in draft tab is loaded | None |
| `opencti_chatbot_message_count` | Gauge | `count` | Number of chatbot messages sent (legacy and XTM One combined) | None |
| `opencti_config_preset_export_count` | Gauge | `count` | Number of configuration preset bundles exported | None |
| `opencti_connector_deployed_count` | Gauge | `count` | Number of connectors deployed via composer | None |
| `opencti_custom_field_created_count` | Gauge | `count` | Number of custom field definitions created | None |
| `opencti_custom_fields_by_entity_type` | Gauge | `count` | Custom field definitions broken down by attached entity type | Set at run time, one data point per item |
| `opencti_custom_fields_by_field_type` | Gauge | `count` | Custom field definitions broken down by field type | Set at run time, one data point per item |
| `opencti_custom_view_created_count` | Gauge | `count` | Number of custom views created | None |
| `opencti_custom_view_enabled_count` | Gauge | `count` | Number of custom views enabled | None |
| `opencti_dashboards_with_custom_field_filter_count` | Gauge | `count` | Number of dashboards with at least one widget filtering on a custom field | None |
| `opencti_data_shares_by_type` | Gauge | `count` | Data sharing surfaces broken down by type and public state | Set at run time, one data point per item |
| `opencti_decay_rule_creation_count` | Gauge | `count` | Number of decay rules created | None |
| `opencti_draft_creation_count` | Gauge | `count` | Number of draft creation | None |
| `opencti_draft_validation_count` | Gauge | `count` | Number of draft validation | None |
| `opencti_email_template_created_count` | Gauge | `count` | Number of email templates created | None |
| `opencti_export_generated_count` | Gauge | `count` | Number of export generations requested | None |
| `opencti_forgot_password_count` | Gauge | `count` | Number of clicks on Forgot Password | None |
| `opencti_form_intake_created_count` | Gauge | `count` | Number of form intakes created | None |
| `opencti_form_intake_deleted_count` | Gauge | `count` | Number of form intakes deleted | None |
| `opencti_form_intake_submitted_count` | Gauge | `count` | Number of form intakes submitted | None |
| `opencti_form_intake_updated_count` | Gauge | `count` | Number of form intakes updated | None |
| `opencti_groups_count` | Gauge | `count` | Number of groups | None |
| `opencti_indexed_files_count` | Gauge | `count` | Number of indexed files | None |
| `opencti_inference_rules_active_count` | Gauge | `count` | Number of activated inference rules | None |
| `opencti_ingesters_by_type` | Gauge | `count` | Built-in ingesters broken down by type and running state | Set at run time, one data point per item |
| `opencti_ingestion_objects_processed_count` | Gauge | `count` | Number of objects processed by completed works | None |
| `opencti_investigations_count` | Gauge | `count` | Number of investigations | None |
| `opencti_is_activity_enabled` | Gauge | `boolean` | Whether activity is enabled on the platform (has activity listeners) | None |
| `opencti_is_activity_retention_rule_active` | Gauge | `boolean` | Whether the activity retention rule is active on the platform | None |
| `opencti_is_ai_enabled` | Gauge | `boolean` | Built-in LLM configuration state with provider type dimension | Set at run time, one data point per item |
| `opencti_is_chatbot_cgu_accepted` | Gauge | `boolean` | Filigran chatbot AI CGU accepted | None |
| `opencti_is_enterprise_edition` | Gauge | `boolean` | Enterprise Edition is activated | None |
| `opencti_is_file_indexing_enabled` | Gauge | `boolean` | File indexing manager is running | None |
| `opencti_is_history_retention_rule_active` | Gauge | `boolean` | Whether the history retention rule is active on the platform | None |
| `opencti_is_organization_segregation_enabled` | Gauge | `boolean` | Organization segregation is configured | None |
| `opencti_is_sso_authzero_strategy_enabled` | Gauge | `boolean` | AuthZeroStrategy is configured and enabled | None |
| `opencti_is_sso_cert_strategy_enabled` | Gauge | `boolean` | CertStrategy is configured and enabled | None |
| `opencti_is_sso_facebook_strategy_enabled` | Gauge | `boolean` | FacebookStrategy is configured and enabled | None |
| `opencti_is_sso_github_strategy_enabled` | Gauge | `boolean` | GithubStrategy is configured and enabled | None |
| `opencti_is_sso_google_strategy_enabled` | Gauge | `boolean` | GoogleStrategy is configured and enabled | None |
| `opencti_is_sso_header_strategy_enabled` | Gauge | `boolean` | HeaderStrategy is configured and enabled | None |
| `opencti_is_sso_ldap_strategy_enabled` | Gauge | `boolean` | LDAPStrategy is configured and enabled | None |
| `opencti_is_sso_local_strategy_enabled` | Gauge | `boolean` | LocalStrategy is configured and enabled | None |
| `opencti_is_sso_openid_strategy_enabled` | Gauge | `boolean` | OpenidStrategy is configured and enabled | None |
| `opencti_is_sso_saml_strategy_enabled` | Gauge | `boolean` | SAMLStrategy is configured and enabled | None |
| `opencti_is_xtm_hub_registered` | Gauge | `boolean` | Platform is registered on XTM Hub | None |
| `opencti_is_xtm_one_configured` | Gauge | `boolean` | XTM One is configured (url and token) | None |
| `opencti_knowledge_objects_by_type` | Gauge | `count` | Knowledge graph scale broken down by curated entity type | Set at run time, one data point per item |
| `opencti_notification_sent_count` | Gauge | `count` | Notifications sent broken down by channel (email, webhook, ui) | Set at run time, one data point per item |
| `opencti_notifiers_count` | Gauge | `count` | Notifiers broken down by connector (email, webhook, ui, other) | Set at run time, one data point per item |
| `opencti_oaev_connectors_count` | Gauge | `count` | Number of OpenAEV connectors | None |
| `opencti_offloaded_stream_events_count` | Gauge | `count` | Current total number of stream events offloaded to file storage (too large for redis) | None |
| `opencti_organizations_count` | Gauge | `count` | Number of organizations | None |
| `opencti_pir_count` | Gauge | `count` | Number of PIRs | None |
| `opencti_playbook_ai_agent_run_count` | Gauge | `count` | Number of playbook AI agent component runs | None |
| `opencti_playbook_execution_count` | Gauge | `count` | Number of playbook executions started | None |
| `opencti_playbooks_count` | Gauge | `count` | Playbooks broken down by running state | Set at run time, one data point per item |
| `opencti_redis_stream_events_count` | Gauge | `count` | Current total number of events held in the redis live stream | None |
| `opencti_relationships_has_covered_count` | Gauge | `count` | Number of relationships has-covered | None |
| `opencti_request_access_approved_count` | Gauge | `count` | Number of access requests approved | None |
| `opencti_request_access_creation_count` | Gauge | `count` | Number of RFI of request access type that are created | None |
| `opencti_request_access_declined_count` | Gauge | `count` | Number of access requests declined | None |
| `opencti_roles_count` | Gauge | `count` | Number of roles | None |
| `opencti_roles_with_capability_in_draft_count` | Gauge | `count` | Number of roles with capability in draft | None |
| `opencti_saved_filters_with_custom_field_count` | Gauge | `count` | Number of saved filters filtering on a custom field | None |
| `opencti_security_coverage_results_count` | Gauge | `count` | Number of security coverage results | None |
| `opencti_security_coverages_count` | Gauge | `count` | Number of security coverages | None |
| `opencti_service_account_into_user_count` | Gauge | `count` | Number of Service Account turned into User | None |
| `opencti_shared_saved_filters_count` | Gauge | `count` | Number of saved filters shared with at least one other member (non-creator) | None |
| `opencti_shared_saved_filters_permission_changes` | Gauge | `count` | Number of access restriction updates on shared saved filters | None |
| `opencti_synchronizers_count` | Gauge | `count` | Number of OpenCTI synchronizers | None |
| `opencti_total_instances_count` | Gauge | `count` | Cluster number of instances | None |
| `opencti_total_service_account_count` | Gauge | `count` | Number of service account | None |
| `opencti_total_users_count` | Gauge | `count` | Number of users | None |
| `opencti_triggers_by_type` | Gauge | `count` | Notification triggers broken down by type (live, digest) | Set at run time, one data point per item |
| `opencti_user_background_task_count` | Gauge | `count` | Number of background tasks on User scope | None |
| `opencti_user_email_send_count` | Gauge | `count` | Number of emails sent from the platform | None |
| `opencti_user_into_service_account_count` | Gauge | `count` | Number of User turned into Service Account | None |
| `opencti_user_login_count` | Gauge | `count` | Number of user that logs-in into application | None |
| `opencti_workbench_draft_convertion_count` | Gauge | `count` | Number of workbench to draft convertion | None |
| `opencti_workbench_upload_count` | Gauge | `count` | Number of workbench upload - creation and updates | None |
| `opencti_workbench_validation_count` | Gauge | `count` | Number of workbench validation | None |
| `opencti_workflow_publish_count` | Gauge | `count` | Number of workflow definitions published | None |
| `opencti_workflow_request_access_migration_count` | Gauge | `count` | Number of request-access workflow migrations | None |
| `opencti_workflow_request_access_publish_count` | Gauge | `count` | Number of request-access workflow definitions published | None |
| `opencti_xtm_agent_call_count` | Gauge | `count` | Direct XTM One agent calls broken down by channel (direct, direct_files) | Set at run time, one data point per item |
