Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 08cea61

Browse files
Merge pull request Netflix#1138 from mgtriffid/eureka-1137
EUREKA-1137 Add counter for congestion issues
2 parents a1e563a + d31e80e commit 08cea61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

eureka-core/src/main/java/com/netflix/eureka/util/batcher/TaskExecutors.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ static class TaskExecutorMetrics {
9393
@Monitor(name = METRIC_REPLICATION_PREFIX + "numberOfPermanentErrors", description = "Number of permanent task execution errors", type = DataSourceType.COUNTER)
9494
volatile long numberOfPermanentError;
9595

96+
@Monitor(name = METRIC_REPLICATION_PREFIX + "numberOfCongestionIssues", description = "Number of congestion issues during task execution", type = DataSourceType.COUNTER)
97+
volatile long numberOfCongestionIssues;
98+
9699
final StatsTimer taskWaitingTimeForProcessing;
97100

98101
TaskExecutorMetrics(String id) {
@@ -123,6 +126,9 @@ void registerTaskResult(ProcessingResult result, int count) {
123126
case PermanentError:
124127
numberOfPermanentError += count;
125128
break;
129+
case Congestion:
130+
numberOfCongestionIssues += count;
131+
break;
126132
}
127133
}
128134

0 commit comments

Comments
 (0)