Open sburkard opened 4 years ago
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.
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.