Monitoring OpenCTI with Prometheus and logs: what it covers and when you need it
A self-hosted OpenCTI that feeds intelligence to a team can stop delivering value quietly. A worker falls behind, a RabbitMQ queue grows, or the disk under Elasticsearch or OpenSearch fills, and nothing on the user interface looks broken until analysts notice missing indicators. Monitoring is what turns those silent failures into alerts you act on, and this topic covers how to expose platform and worker metrics, collect JSON logs, and decide which thresholds matter for your deployment.
The components to watch are the platform (UI and GraphQL API), the Python workers that consume RabbitMQ messages, RabbitMQ itself, Redis, Elasticsearch or OpenSearch, the S3-compatible storage holding uploaded files, and each connector that imports or enriches data. Each one fails differently, so a single uptime check on the web address will miss most of them. Prometheus, Alertmanager and Grafana are open-source options for collecting, alerting and visualizing these signals, and their software licenses cost nothing. The real costs are the storage and compute to keep metrics, the engineering time to write and tune alert rules, and the staff who respond at night.
Before you commit to this design, confirm three things in your environment. First, which metrics endpoints your OpenCTI version exposes and how they are enabled, since the exact configuration keys belong in the OpenCTI deployment overview and your release notes. Second, whether your team already runs a metrics stack, because reusing it changes both cost and the skills needed. Third, who owns each alert, and whether a page at night is justified for a queue backlog or only for a full disk. Prometheus stores data locally and is not clustered or replicated, so you also need a retention plan and an Alertmanager setup that reaches a responder. Log shipping adds a second store with its own retention and access rules, and those must respect the sensitivity of the threat data your logs may reveal.
Monitoring options and when each fits
This table compares four ways to watch a self-hosted OpenCTI deployment: Prometheus pull scraping, OTLP export to a collector, JSON file logs shipped to a log platform, and Grafana dashboards. Read each row to see what signal the option captures, what it asks your team to run, and which team profile it suits. Most deployments combine at least two of these options.
| Option | What it captures | Operating burden | Team profile it suits |
|---|---|---|---|
| Prometheus pull scraping | Numeric metrics from the OpenCTI platform and worker endpoints, such as queue depth and error counts, queried with PromQL | Prometheus server storage, scrape targets for each platform and worker node, and alert rules to maintain; local storage is single-node and needs its own backup plan | Platform or SRE team already running Prometheus and Alertmanager |
| OTLP export to a collector | Metrics and traces pushed from OpenCTI to an OpenTelemetry Collector, which then forwards them to one or more backends | Collector configuration and version management, plus the chosen backend; useful when several tools need the same telemetry | Team standardizing telemetry across several applications and infrastructure |
| JSON file logs to a log platform | Structured platform and worker log lines, useful for ingestion errors, failed connector runs and authentication events | Log shipping agents, index or label design, retention sizing and parsing rules; log volume grows with connector activity | Security operations or analysts who already search logs in Loki or Graylog |
| Grafana dashboards | Visual views over Prometheus, Loki or other data sources, combining queue, error and disk panels on one screen | Grafana server upkeep, dashboard and alert maintenance, and database choice for production; a small single instance is simple to start | Operators who want one shared view for on-call and capacity reviews |
| Alertmanager notifications | Grouped, silenced and routed alerts raised from Prometheus rules on queues, errors and disk | Routing trees, receiver credentials and silence hygiene; high availability needs a cluster of instances | On-call teams with a defined escalation path |
Enabling metrics, scraping and log shipping in order
This sequence turns OpenCTI platform and worker metrics and logs into data your team can query, alert on and retain. Each step ends with a check, so gaps in scraping, retention or alert routing show up before an incident does.
Confirm the OpenCTI release and its metrics settings
The platform owner records the running OpenCTI version, which follows the x.YYMMDD.z pattern for regular releases or x.YYMMDD.z-lts.n for LTS builds, and checks that the image tag matches it. Next, they read the metrics and logging options in the documentation for that exact version and list each setting they plan to change. Option names and defaults can differ between releases, so the settings must come from the matching documentation. Done when the running version, the image tag and the documentation page all name the same release.
Enable platform and worker metrics
The platform owner enables metrics on the platform nodes and on each worker group, since workers consume the RabbitMQ messages that drive ingestion and their queue activity is not visible from the platform alone. Each container gets its own metrics port or endpoint, recorded in the deployment configuration. Restrict the endpoint to the monitoring network, as you would for any metrics endpoint. Done when a request from the Prometheus host to each endpoint returns metric text, and the response lists the platform and worker series you expected.
Create Prometheus scrape jobs for each target
The monitoring engineer adds one scrape job per component group in the Prometheus configuration, using static targets or service discovery. Platform nodes, worker groups and any other exporters get separate jobs with labels for environment and role, so dashboards and alerts can filter by component. Prometheus pulls metrics over HTTP, so the Prometheus host must reach each target. Validate the file with the Prometheus configuration check tool before reloading. Done when the Targets page in the Prometheus interface shows every target as up.
Set retention and remote write for long-term storage
The monitoring engineer sets how long Prometheus keeps data locally, using the time or size retention options. The default is 15 days, so the value should match the period your team needs to investigate queue or ingestion trends. Local storage is a single node and is not clustered or replicated, so plan backups and disk capacity for it. If you need history beyond the local window, configure remote write to an external long-term store. Done when the runtime flags page shows the intended retention values and the remote write metrics show samples being sent without a growing failure count.
Point Prometheus at every Alertmanager instance
The monitoring engineer lists each Alertmanager instance directly in the Prometheus alerting configuration instead of placing a load balancer in front of them. For high availability, the Alertmanager cluster is formed with its own cluster settings, and Prometheus delivers alerts to every member. Confirm that the alert routing and receivers match the on-call process before go-live. Done when the Alertmanagers page in Prometheus lists every instance as active, and a test alert reaches the intended receiver.
Configure JSON log output and shipping
The platform owner turns on JSON log output using the logging option documented for the chosen OpenCTI release, then configures the container runtime or a log agent to forward platform and worker output to a central log store. Tag each stream by component so that ingestion errors from workers can be separated from API errors on the platform. Choose the destination according to the log tools your team already runs. Done when a platform log line and a worker log line both appear in the central store as parsed fields with their component labels.
Verify targets, metrics and log flow end to end
The monitoring engineer runs a final pass across the whole chain: every scrape target is up, the metric names used in alert rules exist on the endpoints, remote write (if configured) is sending, every Alertmanager is active, and logs from each component arrive with parsed fields. They then fire a controlled test alert and confirm it reaches the receiver. Done when the operator records the results in a checklist, and the checklist is repeated after each OpenCTI upgrade because metric and log names can change between releases.
Which alerts are worth setting on queues, errors and disk
Most OpenCTI alerts fall into six families that map to the places work piles up or breaks: RabbitMQ queues, workers, platform logs, the search index, Redis and RabbitMQ themselves, and connectors. Each family points to a different failure, so each needs its own alert and its own owner. Thresholds should come from your own baseline measured over normal ingestion, not from a number copied from a blog post. Record queue depth, error rates and disk use for several weeks, then alert on sustained deviation from that pattern.
RabbitMQ queue depth and growth
Workers consume RabbitMQ messages for asynchronous writes, so a queue that keeps growing means writes are arriving faster than they are processed. Alert on depth that stays above your baseline for a sustained period, and on a positive growth trend, not on a single spike from a large import. When the queue grows, check whether Elasticsearch or OpenSearch throughput is the limit before adding workers. Connector queues and worker queues can be separated in the RabbitMQ management view, so confirm which queue is growing before acting.
Deployment overviewWorker availability
Python workers consume the queues, so a worker that has stopped or restarted in a loop leaves messages waiting without any user-visible error. Alert when the count of running workers falls below the number you deployed, and when a worker restarts repeatedly. The deployment guidance recommends at least one platform node for every 3 workers, so check the ratio after scaling changes as well. Compare the live count against the replica count in your orchestrator.
Deployment overviewPlatform error rates from logs
The platform writes structured JSON logs, so error-level entries can be counted per minute and alerted on when the rate rises above your normal level. Track GraphQL errors, authentication failures and ingestion-related errors as separate series, because they point to different owners. A short burst after a connector run is usually expected, so alert on a rate sustained over several evaluation windows. Confirm the exact log field names in your version before writing the query.
Search index disk and watermark pressure
Elasticsearch or OpenSearch stops accepting writes when disks reach their watermark thresholds, and OpenCTI ingestion then stalls and queues grow behind it. Alert well before the high watermark, on both used disk percentage per data node and the rate of growth, so there is time to add capacity or adjust retention. Check that the cluster health state is watched as well, since a yellow or red status can precede write blocks. Confirm the watermark settings your cluster uses, since they are configurable.
- Documented minimum per node
- 16 GB SSD
Redis and RabbitMQ health
Redis and RabbitMQ are dependencies that fail quietly. Alert on Redis memory use approaching its limit, on connection refusals, and on RabbitMQ node or memory alarms, which can block publishers and stop the flow of work. Both services need the versions the platform requires, so also alert when a node falls out of the cluster after a patch. Check these alerts first when queues and errors rise together, because a dependency fault often causes both.
- Minimum supported version
- Redis 7.1
Connector failures and silent stops
A connector that errors or stops running produces no platform error, only missing data. Alert on connectors that have not reported a successful run within the expected schedule, and on connectors reporting a failed state in the platform. Track connectors that run on a schedule separately from streams, because a stream that stops consuming can leave its queue growing without an error. Assign each connector an owner so that an alert has someone to call.
How the monitoring stack sits beside the OpenCTI trust boundary
Treat the monitoring stack as a separate system that reads from OpenCTI, not as part of the platform. Prometheus scrapes metrics endpoints on the platform and on the Python workers, Alertmanager receives alerts from Prometheus, a log shipper forwards container output from the platform, workers and connectors, and Grafana queries Prometheus and log storage for dashboards. Each of these components holds a copy of operational detail: the metrics endpoints expose throughput and queue state, and the logs can contain connector names, hostnames, configuration fragments, error payloads and sometimes indicator or entity data. Decide which of these components sit inside the same network zone as OpenCTI, Elasticsearch or OpenSearch, Redis, RabbitMQ and the S3-compatible storage, and which sit in a management zone with narrower access. Confirm with your security team how each log source is classified before you ship it outside the platform boundary.
The controls that matter are access and retention. Restrict scrape paths so that only Prometheus can reach metrics endpoints, require authentication on Grafana and on any exposed Prometheus or Alertmanager interface, and keep log access aligned with the sensitivity of intelligence in OpenCTI. Prometheus local storage is single-node and not clustered or replicated, so the server that holds metric history is a single point you must plan for. Set the retention period and size limits deliberately, decide whether you need remote write to external long-term storage, and schedule backups of the Prometheus data directory with a tested restore. Losing that history is a monitoring gap, not a data loss for OpenCTI, but it removes the baseline you use during an incident.
Confirm version and licensing choices before you standardize on the stack. Grafana 13.2.0 was released on August 18, 2026, and patch releases 13.2.4, 13.1.8 and 13.0.11 followed on October 13, 2026, so check which line your organization supports before you install. Grafana, Loki and Tempo moved from Apache License 2.0 to AGPLv3 on April 20, 2021, and Grafana Enterprise is offered as a non-AGPL commercial option, so have legal review the license terms for your deployment model. Prometheus and Alertmanager are Apache-2.0 projects with no paid enterprise edition, so your costs come from infrastructure, storage and the people who operate them. Ask your implementation partner to document each component's zone, owner and retention in writing before deployment.
How metrics and logs flow from OpenCTI to alerts
The diagram starts at the OpenCTI platform and its Python workers, which expose metrics and write logs, alongside the connectors that feed them. Prometheus pulls the metrics endpoints on a schedule, while the JSON logs travel to a separate log store that Grafana can query. Alert rules in Prometheus send firing alerts to Alertmanager, which groups and routes them. The dependencies, RabbitMQ, Elasticsearch, Redis and S3-compatible storage, are shown as sources of queue, index and disk signals that the alerts must watch. Confirm which metrics each component exposes in your version before writing rules.
Metric scrapes and log shipping feed Prometheus, Alertmanager and Grafana.
Securing metrics endpoints and log data
Metrics and logs from OpenCTI describe your threat intelligence workload, service topology and sometimes the names of sensitive sources, so they need the same access discipline as the platform itself. The cards below cover how to restrict who can scrape or read telemetry, what to strip from logs, and how to harden the Grafana layer that displays it.
Restrict who can scrape metrics
The OpenCTI metrics endpoints should not be reachable from user networks or the open internet. Confirm the metrics port and path in your deployment version, then limit access to the Prometheus servers or the collector that scrapes them, using network policy, a firewall rule or a dedicated internal interface. Test the restriction from an unapproved host so you know a failed scrape is the control working, not an outage.
Prometheus security modelAuthenticate the Prometheus scrape path
If scrapes must cross a network boundary, put authentication in front of the endpoint. Prometheus supports authenticated scrape configuration, and your reverse proxy or gateway can require a token or client certificate. Store scrape credentials in a secrets manager rather than in plain scrape configs, and rotate them on a schedule your security team sets.
Review the Prometheus security model
Prometheus is designed to run inside a trusted network and does not provide built-in user accounts for its own web interface. Read the project's security guidance before exposing the query UI or Alertmanager, and confirm that every component reachable by operators is covered by your access model. Record the decision in your architecture notes so auditors can see where trust boundaries sit.
Prometheus security docsRedact sensitive fields in logs
OpenCTI logs can include connector configuration, API tokens, file names and indicator values that reflect internal investigations. Before shipping JSON logs to a central platform, define a redaction step in the collector or pipeline that masks secret-looking keys and tokens. Test the rules with sample events containing known fake credentials, and confirm that redaction runs before logs leave the host.
Control access to Grafana and log stores
Grafana and the log platform should not share the default admin account. Use your identity provider for sign-in, map groups to viewer, editor and admin roles, and limit who can query raw logs, since those views may expose data that dashboards hide. Note that SAML, team sync and SCIM provisioning are Grafana Enterprise or Grafana Cloud features, so confirm the edition you need before designing the model.
Grafana authentication docsHarden Grafana cookies and page policy
Apply the Grafana security hardening settings that cover browser-facing risk: secure and SameSite session cookies, a Content Security Policy, Trusted Types, and hiding the Grafana version from unauthenticated users. Require authentication for the metrics endpoint, and enable domain verification to reduce DNS rebinding exposure. Check each setting in a staging instance, since strict policies can break plugins and embedded panels.
Grafana hardening docsWhat to confirm before relying on this monitoring
Which OpenCTI metric names and settings does my release expose?
Confirm the exact metric names, labels and the settings that enable them in the release you run, because the names can change between releases and the platform and worker endpoints are configured separately. Start with the OpenCTI deployment overview to confirm the components involved, then check the release notes for the version you have installed. Use a test instance to scrape the endpoint and record the exact series names before you write any alert rule. Ask Filigran or your implementation partner for the documented list if the release notes do not cover it. Treat any metric name in an internal runbook as valid only for the version it was tested against.
Does my OpenCTI release support OTLP export and how is it configured?
Do not assume OTLP support: confirm it in the configuration reference for your exact OpenCTI release before planning a collector pipeline. If it is supported, check which signals (metrics, logs or traces) it covers, which keys enable it, and how the endpoint and headers are set. Where it is not supported, Prometheus scraping remains the path to verify. Ask whether the exporter runs in the platform, the workers or both, since that changes what you must deploy and secure. Keep the configuration in version control so a platform upgrade does not silently drop it.
What format and fields do OpenCTI JSON logs contain?
Confirm the log format, field names and log levels in your release before you write parsers, because a parser built on one version can break after an upgrade. Check the configuration keys that switch the output to JSON and the destination, whether stdout or a file. Run a sample ingestion and a failed connector run, then record which fields identify the component, the error and the time. Ask your log platform team to map those fields to dashboards and retention rules. Redaction matters too: verify that tokens, connector credentials and personal data in indicators do not appear in log lines you ship off the host.
Which Prometheus version and LTS line should I run?
Pick a version from the current LTS line unless you have a reason not to, and confirm its support dates before you commit. Prometheus LTS releases receive bug fixes for one year, and the release cycle page lists the current line and the end-of-life date of the previous one. Non-LTS minor releases generally stop receiving bug fixes after six weeks, so a standard minor release on an old cycle carries risk. Check the GitHub releases page for the patch level you plan to deploy. Ask your platform team to schedule upgrades against the published end-of-life dates rather than waiting for a failure.
Which Grafana version works with my Prometheus and OpenCTI setup?
Confirm compatibility in the Grafana release notes and the data source documentation for the versions you run, since Grafana and Prometheus each ship on their own schedule. Grafana major releases come once a year, minor releases roughly every other month, and each minor is supported for a set period, so check the support window before you choose a version. Test dashboards and alert rules on a staging instance after any upgrade. Note that Grafana's licensing changed in 2021 and some features such as SAML sit in the Enterprise edition, so confirm which edition your authentication requirement needs.
Is my Alertmanager cluster configured correctly for high availability?
Confirm the clustering flags and peer settings for the Alertmanager version you run, and verify that Prometheus sends alerts to every Alertmanager instance rather than through a load balancer. The Alertmanager documentation describes how the cluster is formed and how notifications are deduplicated across peers. Test the setup by stopping one instance and confirming that a test alert still reaches your receiver once. Ask your on-call team to confirm that grouping, inhibition and silences match their escalation policy, because a clustered setup that duplicates or drops pages is worse than a single instance.
How much storage does Prometheus need for my OpenCTI metrics?
Storage depends on the number of active series, the scrape interval, the retention period and the compression of your data, so measure it in your environment rather than relying on a general estimate. Prometheus defaults to 15 days of retention and can be limited by time or size, so decide both values before go-live. Its local storage is not clustered or replicated, so plan backups or remote write to long-term storage separately. Check disk growth over a week of normal ingestion and set a size-based limit and a disk alert. Ask your platform team to document the retention decision and who owns the volume.
Official documentation for OpenCTI and Prometheus
Start with the OpenCTI deployment overview before you enable any metrics endpoint. It lists the platform, the Python workers, RabbitMQ, Redis, Elasticsearch or OpenSearch and the object storage that a monitoring setup has to cover. Use the OpenCTI releases page to confirm which platform and worker versions you run, because metric names and log fields can change between releases. Check the version of every OpenCTI image against the release notes before you write a scrape configuration or alert rule that depends on a specific metric name.
For the Prometheus side, read the Prometheus storage documentation first. It states that local storage is not clustered or replicated and should be run like any other single-node database, which means you must decide how long data is kept and where long-term copies go through remote write. Then read the Alertmanager documentation to plan grouping, silences and high availability, including the point that Prometheus should target every Alertmanager instance rather than a load balancer in front of them. Confirm both against the version you deploy, since the Prometheus release cycle affects which patch lines still receive fixes.
If you visualize these metrics in Grafana, the Grafana installation guide explains the production database requirement, since SQLite does not scale for production and MySQL or PostgreSQL is needed for high availability. Review the Grafana security hardening guide before exposing dashboards, especially the advice to require authentication for the metrics endpoint. Ask your security team to sign off on these settings, because an unauthenticated metrics endpoint can reveal version and operational detail about your OpenCTI stack.
How DeployOpen scopes and supports OpenCTI monitoring
DeployOpen plans and builds metrics collection, log shipping and alert rules for OpenCTI inside your own infrastructure, so your operations team can see queue depth, errors and disk pressure before users do. Each engagement starts with a written scope that names the platform, worker and dependency components to be observed, and the people who will respond to alerts.
How we scope
- Inventory the OpenCTI platform, worker, connector and dependency hosts that need metrics or logs.
- Agree which OpenCTI, Elasticsearch or OpenSearch, RabbitMQ, Redis and storage signals the written scope covers.
- Confirm the Prometheus, Alertmanager, Grafana or OTLP tooling you already run, or whether new components are in scope.
How we build
- Enable platform and worker metrics and JSON log output, then verify each scrape target returns data.
- Configure Prometheus scrape jobs, retention and Alertmanager routing in a version-controlled form.
- Write alert rules for queue backlog, repeated ingestion errors, failed scrapes and disk usage, then test each one against a controlled condition.
How we hand over
- Deliver a runbook that maps each alert to its likely cause, the logs to check and the first response step.
- Document dashboards, scrape configuration, retention settings and the access model for metrics endpoints.
- Walk your operations team through alert handling and record which items remain with your own staff.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer for monitoring changes after handover.
- Re-check alert rules and scrape targets after OpenCTI, dependency or monitoring stack upgrades, as part of the agreed scope.

