I/O Observability
This document explains how to observe the input/output operations of Lemline workflows: calls to remote services, broker messages and database work.
Types of I/O in Lemline
I/O | Done by | Where to observe it |
|---|---|---|
Calls to remote services ( | Runners, during a step | Step duration metrics, runner logs, the remote service's own monitoring |
Scripts and containers ( | Runners, during a step | Step duration metrics, runner logs |
Broker messages (commands, events, CloudEvents, lifecycle events) | Runners and gateway | Consumer metrics, broker monitoring |
Database (definitions, waits, retries, schedules, listeners, failures) | Runners and gateway | Database monitoring |
Metrics
Lemline records metrics per message consumer, not per remote call (see Metrics Reference):
lemline_messaging_commands_processing_duration_seconds: a step's duration includes the remote calls it makes, so a slow service shows up here, tagged byworkflow_name.lemline_messaging_<channel>_received_total,_processing_failed_total,_ack_*,_nack_*: message flow and failures forcommands,eventsandcloudevents.lemline_messaging_<channel>_deserialization_duration_secondsand_serialization_duration_seconds: cost of reading and writing messages, which grows with workflow data size.
Lemline does not export per-endpoint HTTP client metrics, database query metrics or distributed traces.
Broker Observability
Use the broker's own monitoring for lag and depth:
Kafka: consumer group lag on
<prefix>-<namespace>-commands,-eventsand-cloudeventstopics (consumer grouplemline-groupby default). Failed records go to<topic>.dlq.RabbitMQ: queue depth and unacknowledged messages.
PGMQ: queue tables in the PostgreSQL database.
Messages a runner cannot process for its namespaces are stored as failures and can be inspected or re-sent with lemline failures replay --dry-run.
Logs
Runner logs carry the workflow namespace, name, version and instance id. Raise the level to see I/O details:
Or, for Lemline packages only, with an environment variable (Quarkus log properties are not read from the configuration file):
At DEBUG, task inputs are logged: keep it off in production.
Making I/O Reliable
I/O behavior is controlled in the workflow definition:
HTTP calls use fixed client limits: 15 seconds to connect and 30 seconds per request. A task-level
timeoutdoes not shorten them; Lemline only enforces timeouts onlistentasks.trywith aretrypolicy retries failed calls with a delay and backoff; retries are scheduled through the database, so a waiting retry holds no runner resources.forkruns independent calls in parallel.output.asandexport.askeep workflow data small, which reduces the size of every message.