camunda-prometheus-process-engine-plugin icon indicating copy to clipboard operation
camunda-prometheus-process-engine-plugin copied to clipboard

Plugin and metrics configuration in SpringBoot

Open sburkard opened this issue 5 years ago • 1 comments

When a SpringBoot application with embedded Camunda engine is deployed, the YAML file with the metrics configurations is part of the SpringBoot Fat-JAR, not an individual file.

It would be nice if the path to this configuration file could also be resolved in the classpath (as already done for the custom collectors scripts). For example plugin.setCollectorYmlFilePath("classpath:/camunda-metrics.yml")

Another option of course would be if the metrics and plugin configuration could be done directly in Springs application.yml file.

sburkard avatar Apr 22 '20 13:04 sburkard

Primary use case was to provide ability for non spring boot to use the extension. At scale you would be running the Prometheus extension on a standalone node in the cluster that would have its job executor turned off and only used for Prometheus processing. So if your cluster is a spring boot based, you can always just deploy this extension as a stand alone instance without messing with your primary app.

It's a good idea is build a spring boot version.

StephenOTT avatar Apr 22 '20 20:04 StephenOTT