# 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/lts/7.260309-lts/reference/opencti/metrics/
- Products: OpenCTI 7.260309.0-lts.8
- OpenCTI line: 7.260309 LTS · 7.260309.0-lts.8
- For: developers, platform engineers, administrators
- Type: Reference
- Generated from the OpenCTI 7.260309.0-lts.8 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 6 OpenTelemetry metrics OpenCTI 7.260309.0-lts.8 exposes to monitor a deployment, with the attributes each data point carries. Turn them on and collect them as [Metrics](https://filigran.io/docs/lts/7.260309-lts/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_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_sent_email` | Counter | Not set | Counts total number of email sent | `category`, `identifier` |

## 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/lts/7.260309-lts/opencti/configure/telemetry/) explains what is sent and how to stop it.

| Metric | Kind | Unit | Description | Attributes |
| --- | --- | --- | --- | --- |
| `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_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_connector_deployed_count` | Gauge | `count` | Number of connectors deployed via composer | 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_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_is_enterprise_edition` | Gauge | `boolean` | Enterprise Edition is activated | 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_pir_count` | Gauge | `count` | Number of PIRs | None |
| `opencti_request_access_creation_count` | Gauge | `count` | Number of RFI of request access type that are created | None |
| `opencti_roles_with_capability_in_draft_count` | Gauge | `count` | Number of roles with capability in draft | 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_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_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 |
