Releases: StephenOTT/camunda-prometheus-process-engine-plugin
Update deps for latest releases
v1.8.0 Update deps for latest releases
Jackson CVE Fix
1.7.2 Bump version for release
Update Dependencies
1.7.1 update deps for jackson and camunda 7.10 + project version pump to 1.7.1
Add Deployment ID, Version Number, and Version Tag labels for Process Instance Duration and Activity Instance Duration Tracking
Add Deployment ID, Version Number, and Version Tag labels for Process Instance Duration and Activity Instance Duration Tracking
Example output in metric exporter
# HELP camunda_activity_instance_duration Core activity instance duration tracking. Used to track all activity instances.
# TYPE camunda_activity_instance_duration histogram
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.01",} 6.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.02",} 6.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.03",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.04",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.05",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.06",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.07",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.08",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.09",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.1",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.2",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.3",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.4",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.5",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="1.0",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="5.0",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="10.0",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="20.0",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="30.0",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="60.0",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="120.0",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="+Inf",} 7.0
camunda_activity_instance_duration_count{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",} 7.0
camunda_activity_instance_duration_sum{engine_name="default",element_type="scriptTask",process_definition_id="test_Process_1_3",activity_id="Task_1sl2bl4",deployment_id="1",process_definition_version="1",process_definition_version_tag="",} 0.051000000000000004
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.01",} 6.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.02",} 6.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.03",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.04",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.05",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.06",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.07",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.08",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.09",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.1",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.2",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.3",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="test_Process_1_3",activity_id="Task_0md9it7",deployment_id="1",process_definition_version="1",process_definition_version_tag="",le="0.4",} 7.0
camunda_activity_instance_duration_bucket{engine_name="default",element_type="manualTask",process_definition_id="t...
Multiple refactors + new Features
New Features:
- Activity Duration tracking enhancements
- Process Instance Duration tracking!
- Grafana Annotation Support updates for Camunda Deployments: When a BPMN deploys, it will be marked as a Annotation in Grafana.
Refactors:
- Cleanup for code
- Updates to prometheus naming conventions for labels and metric names as part of Duration tracking to ensure proper names are created with supported characters
- More error handling
- More logging
- Grafana Annotation API Bearer Token support
- Readme cleanup for usage understanding
Fix for Activity Durations reporting as proper Double values
Previous versions of activity tracking were reporting values as rounded long values rather than double. There was data loss in previous versions because of the rounding.
Null pointer fix
small fix for when the BPMN duration parser is active, but a bpmn is deployed/parsed and then BPMN does not have any duration commands (bpmn wide or per activity). Previously was causing a null pointer exception due to the documentation property returning null
instead of a empty string.
Release of Activity Duration Tracking
Check out the new Activity Duration Tracking: https://github.com/StephenOTT/camunda-prometheus-process-engine-plugin#activity-duration-tracking-beta
This enables BPMN wide and specific activity definitions to have duration tracking.
...
activityDurationTracking:
activity_instance_duration:
help: "Core activity instance duration tracking. Used to track all activity instances."
buckets: [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 2.0, 3.0]
mycustom_metric_duration:
help: "Some custom metric i am tracking"
buckets: [1, 5, 10, 20, 50]
some_userTask_metric:
help: "Tracking the duration of specific user tasks: 1m, 2m, 3m, 4m, 5m, 10m, 15m, 30m, 60m, 8h, 24h."
buckets: [60, 120, 180, 240, 300, 600, 900, 1800, 3600, 28800, 86400]
...
Various Updates + Activity Instance Statistics
Added the ability to configure Activity Instance Statistics collection:
- collector: classpath:prometheus/customcollectors/HistoricActivityStatisticsPerProcessDefinition.groovy
enable: true
startDelay: 0
frequency: 10000
config:
processDefinitionKeys:
- employeeOnboarding
- ccProcessing
processDefinitionIds:
- aProcessDefinitionId
- someOtherProcessDefinitionId
Configurable External Task Collectors for Topic and WorkerId + UserOperationLog Collectors
- updates for concurrency of Simple Metric Classes
- Two new External Task collectors for custom timer collection
- User Operation Log collectors
- You can now run multiple collectors of the same script with the same Metric name being registered. This allows configurable scripts to be created such as the two External Task collectors:
ExternalTaskCustomTopics.groovy
andExternalTaskCustomWorkers.groovy
- Updates to default Grafana template for external tasks and user operation log panels.