Skip to content

Commit

Permalink
feat: include semaphore rejects in hystrix stats
Browse files Browse the repository at this point in the history
  • Loading branch information
lance committed Jun 20, 2017
1 parent 80decd2 commit 2c326cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/hystrix-formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function hystrixFormatter (stats) {
json.rollingCountFallbackRejection = 0;
json.rollingCountFallbackSuccess = 0;
json.rollingCountResponsesFromCache = stats.cacheHits;
json.rollingCountSemaphoreRejected = stats.rejects;
json.rollingCountSemaphoreRejected = stats.semaphoreRejections;
json.rollingCountShortCircuited = stats.rejects;
json.rollingCountSuccess = stats.successes;
json.rollingCountThreadPoolRejected = 0;
Expand Down Expand Up @@ -67,8 +67,8 @@ function hystrixFormatter (stats) {
json.propertyValue_executionTimeoutInMilliseconds = stats.options.timeout;
json.propertyValue_executionIsolationThreadInterruptOnTimeout = true;
json.propertyValue_executionIsolationThreadPoolKeyOverride = null;
json.propertyValue_executionIsolationSemaphoreMaxConcurrentRequests = 10;
json.propertyValue_fallbackIsolationSemaphoreMaxConcurrentRequests = 10;
json.propertyValue_executionIsolationSemaphoreMaxConcurrentRequests = stats.options.capacity;
json.propertyValue_fallbackIsolationSemaphoreMaxConcurrentRequests = stats.options.capacity;
json.propertyValue_metricsRollingStatisticalWindowInMilliseconds = 10000;
json.propertyValue_requestCacheEnabled = stats.options.cache || false;
json.propertyValue_requestLogEnabled = true;
Expand Down

0 comments on commit 2c326cc

Please sign in to comment.