Skip to content

Commit

Permalink
Added exporting of rollingMaxConcurrentExecutionCount value.
Browse files Browse the repository at this point in the history
See Netflix#667 for more info.
  • Loading branch information
LuboVarga committed Mar 1, 2017
1 parent 0db9367 commit 12143fa
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,13 @@ public HystrixRollingNumberEvent call() {
return HystrixRollingNumberEvent.TIMEOUT;
}
});
// the rolling number of MaxConcurrentExecutionCount. Can be used to determine saturation
safelyCreateRollingCountForEvent("rollingMaxConcurentExecutionCount", new Func0<HystrixRollingNumberEvent>() {
@Override
public HystrixRollingNumberEvent call() {
return HystrixRollingNumberEvent.COMMAND_MAX_ACTIVE;
}
});

// the number of executionSemaphorePermits in use right now
metricRegistry.register(createMetricName("executionSemaphorePermitsInUse"), new Gauge<Integer>() {
Expand Down

0 comments on commit 12143fa

Please sign in to comment.