Create my own Metrics

Hello,

I would like to compute my own metrics for the processes running in the process engine based on the data from ACT_HI_PROCINST. The computation should be performed once a week.

In my firs approach the computation is running as a service task in its own process definition. I don’t like this solution because the calculation task is now visible in the process list. I would prefer to have only business tasks in this list. I would like to run this task somewhere in the background.

So I would like to ask if there is any possibility to run cyclic tasks (e.g. 1x every week) in the background?

Regards
Michael

Hi @michael.n,

the internal metrics of the process engine are implemented here: camunda-bpm-platform/engine/src/main/java/org/camunda/bpm/engine/impl/metrics at master · camunda/camunda-bpm-platform · GitHub

I remember vaguely that you can extend the current collection with your own number quite easily. But I could not remember the details anymore.

Hope this helps, Ingo