Skip to content

Commit

Permalink
camunda prometheus task metrics also include suspended (#1595)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhir authored Apr 18, 2024
1 parent ccf3c6a commit 34344e2
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());
}

@Override
Expand Down

0 comments on commit 34344e2

Please sign in to comment.