Overview
Lemline provides comprehensive monitoring capabilities through Micrometer integration, exposing Prometheus-compatible metrics for workflows, retries, failures, and system health.Metrics Endpoint
Metrics are exposed through a dedicated HTTP endpoint that runs independently from the main workflow processing.Default Configuration
http://localhost:8080/q/metrics by default.
CLI Override
You can override the metrics port when starting the runner:Prometheus Integration
Configure Prometheus to scrape Lemline metrics:Key Metrics
Lemline exposes the following metric categories:Workflow Metrics
lemline.workflow.instances.active- Number of active workflow instanceslemline.workflow.instances.completed- Total completed workflowslemline.workflow.instances.failed- Total failed workflowslemline.workflow.execution.duration- Workflow execution time
Task Metrics
lemline.task.executions- Task execution counts by typelemline.task.duration- Task execution duration by typelemline.task.failures- Task failure counts by reason
System Metrics
lemline.retry.scheduled- Scheduled retry operationslemline.retry.executed- Executed retrieslemline.wait.scheduled- Scheduled wait operationslemline.database.connections- Active database connectionslemline.messaging.messages.processed- Message processing rate
JVM Metrics (JVM mode only)
jvm.memory.used- JVM memory usagejvm.gc.pause- Garbage collection pause timejvm.threads.live- Active thread count
Grafana Dashboards
Creating a Dashboard
- Add Prometheus as a data source in Grafana
- Create a new dashboard
- Add panels for key metrics
Sample Panel Queries
Active Workflows:Metric Tags
Add custom tags to all metrics for environment identification:Alerting Rules
Configure Prometheus alerting rules for critical conditions:Native Binary Limitations
When running as a native binary (GraalVM), JVM-specific metrics are not available:- JVM memory metrics
- Garbage collection metrics
- Thread pool metrics
- Class loading metrics
Next Steps
Observability
Configure health checks and logging
Troubleshooting
Common issues and solutions