Skip to content

Commit

Permalink
Merge pull request #1489 from LuboVarga/master
Browse files Browse the repository at this point in the history
Added exporting of rollingMaxConcurrentExecutionCount value.
  • Loading branch information
mattrjacobs authored Mar 1, 2017
2 parents 8b2de49 + 12143fa commit 4cf7e88
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 4cf7e88

Please sign in to comment.