StephenOTT / camunda-prometheus-process-engine-plugin

Monitor your KPIs!!! Camunda BPM Process Engine Plugin providing Prometheus Monitoring, Metric classes for various BPMN use, Grafana Annotations, and HTTPServer data export: Used to generate Prometheus metrics anywhere in the Engine, including BPMN, CMN, and DMN engines and instances.
MIT License
53 stars 24 forks source link

Plugin and metrics configuration in SpringBoot #33

Open sburkard opened 4 years ago

sburkard commented 4 years ago

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.

StephenOTT commented 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.