Metrics
The service publishes Micrometer metrics that can be scraped by Prometheus and visualised in Grafana.
Published metrics
| Metric | Type | Tags | Description |
|---|---|---|---|
jeap.opensearch.indexwriter.indexing | Timer | message_type, operation | Time spent processing a single indexing operation, including skipped and failed ones. The message_type tag contains the simple class name of the triggering Kafka message type. |
jeap.opensearch.indexwriter.kafka.lag | Timer | message_type | Time between the triggering message's creation (set by the publishing producer) and the start of its processing here — i.e. Kafka/network transit time. Omitted if the message has no creation timestamp. |
jeap.opensearch.indexwriter.searchitem.fetch | Timer | index_type | Time spent calling the owning domain service's SearchItem Provider endpoint to retrieve the current search representation. Recorded for UPSERT only; DELETE does not call the provider. |
jeap.opensearch.indexwriter.currentsearchitem.fetch | Timer | index_type | Time spent calling the SearchItem Provider endpoint from CurrentSearchItemFetcher (maintenance, fixed schema major). Kept separate from searchitem.fetch so live-event latency is not mixed with maintenance runs. |
jeap.opensearch.indexwriter.maintenance.policy.check | Counter | outcome | Number of maintenance job target policy checks (JobTargetAcceptanceCheck) by outcome: rollover_in_policy (refused), no_rollover_in_policy, no_policy_applied, policy_undetermined. Each check reads the policy once; failed checks (missing target, OpenSearch unavailable) are not counted. |
jeap.opensearch.indexwriter.maintenance.task | Timer | job_type, outcome | Time spent running one maintenance task, by outcome: succeeded, failed, indexing-disabled or retry (transient error, the task stays open). An exhausted retry is recorded as failed, not retry. Commands for finished tasks or unknown jobs are not recorded. |
jeap.opensearch.indexwriter.maintenance.commands | Counter | job_type, kind | Maintenance task commands sent, by kind: initial, retry (due retry after a transient error) or redispatch (sent again because the job made no progress). |
jeap.opensearch.indexwriter.maintenance.jobs.stuck | Counter | job_type | Jobs reported as stuck: they stalled again after task-max-redispatches rounds of sending their unfinished tasks again, nothing more is sent for them. Counted once per job. Alert on any increase. |
jeap.opensearch.indexwriter.opensearch.write | Timer | index_type, operation | Time spent writing a document to OpenSearch. The operation tag (upsert or delete) allows breaking down write time by write kind. A DELETE records one write per registered major of the index type. |
Notes
The indexing timer covers the full end-to-end processing time per operation, from receiving the
Kafka message to completing (or failing) the OpenSearch write. Operations that are skipped due to
an inactive feature flag or a false IndexingCondition are still recorded — use the timer's
count alongside application logs to distinguish successful writes from skipped operations.
For load/performance testing, use kafka.lag, searchitem.fetch and opensearch.write together
with indexing to break down where processing time is spent: Kafka/network transit, the remote
SearchItem fetch, and the OpenSearch write itself. The remainder of indexing not covered by
searchitem.fetch and opensearch.write is internal IWS overhead (validation, deserialization,
reference extraction).
The maintenance.policy.check counter fails open: a missing ISM explain permission makes every
check report policy_undetermined and allow the target instead of refusing it. Alert on a nonzero
rate of the policy_undetermined outcome, see Maintenance job target policy
check.