Skip to content

Commit

Permalink
camunda prometheus task metrics also include suspended
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhir committed Apr 18, 2024
1 parent ccf3c6a commit 8126353
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public class TaskMetricsProvider implements MetricsProvider {

@Override
public void updateMetrics() {
this.openTasks.labels("assigned").set(this.taskService.createTaskQuery().active().taskAssigned().count());
this.openTasks.labels("unassigned").set(this.taskService.createTaskQuery().active().taskUnassigned().count());
this.openTasks.labels("hasCandidateGroups").set(this.taskService.createTaskQuery().active().withCandidateGroups().count());
this.openTasks.labels("hasCandidateUsers").set(this.taskService.createTaskQuery().active().withCandidateUsers().count());
this.openTasks.labels("unassignedWithNoCandidates").set(this.taskService.createTaskQuery().active().taskUnassigned().withoutCandidateGroups().withoutCandidateUsers().count());
this.openTasks.labels("total").set(this.taskService.createTaskQuery().active().count());
this.openTasks.labels("assigned").set(this.taskService.createTaskQuery().taskAssigned().count());
this.openTasks.labels("unassigned").set(this.taskService.createTaskQuery().taskUnassigned().count());
this.openTasks.labels("hasCandidateGroups").set(this.taskService.createTaskQuery().withCandidateGroups().count());
this.openTasks.labels("hasCandidateUsers").set(this.taskService.createTaskQuery().withCandidateUsers().count());
this.openTasks.labels("unassignedWithNoCandidates").set(this.taskService.createTaskQuery().taskUnassigned().withoutCandidateGroups().withoutCandidateUsers().count());
this.openTasks.labels("total").set(this.taskService.createTaskQuery().count());

Check warning on line 22 in digiwf-libs/digiwf-camunda-prometheus/digiwf-camunda-prometheus-core/src/main/java/de/muenchen/oss/digiwf/camunda/prometheus/TaskMetricsProvider.java

View check run for this annotation

Codecov / codecov/patch

digiwf-libs/digiwf-camunda-prometheus/digiwf-camunda-prometheus-core/src/main/java/de/muenchen/oss/digiwf/camunda/prometheus/TaskMetricsProvider.java#L17-L22

Added lines #L17 - L22 were not covered by tests
}

@Override
Expand Down

0 comments on commit 8126353

Please sign in to comment.