Search code examples
metricsjberet

JBeret - Batchlet Metrics not supported?


While I started using JBeret being the embedded JSR-352 engine in Wildfly, I notice that for some of my workload the chunk pattern does not apply. Simple enough I just wrapped it into batchlets and they are running ok.

Now I'd like to collect metrics the same style as chunks do but there seems no method to

  • increase existing metrics
  • introduce new metrics

What am I missing?


Solution

  • Batchlet is used to model task that is a single unit of work. If your workload is iterative in nature and needs collecting metrics as it progresses, you'll need to use chunk-based step.