Skip to content

Commit

Permalink
Test on main build.
Browse files Browse the repository at this point in the history
  • Loading branch information
zzhlogin committed Dec 16, 2024
1 parent 3558887 commit 36bb681
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- main
- "release/v*"
- test_upgrade_only_v2
env:
AWS_DEFAULT_REGION: us-east-1
STAGING_ECR_REGISTRY: 611364707713.dkr.ecr.us-west-2.amazonaws.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ protected long getThreshold(String metricName) {
switch (metricName) {
// If maximum memory size is undefined, then value is -1
// https://docs.oracle.com/en/java/javase/17/docs/api/java.management/java/lang/management/MemoryUsage.html#getMax()
case JMXMetricsConstants.TOMCAT_THREADS:
threshold = -3;
case JMXMetricsConstants.JVM_HEAP_MAX:
case JMXMetricsConstants.JVM_NON_HEAP_MAX:
case JMXMetricsConstants.JVM_POOL_MAX:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ public class JMXMetricsConstants {
TOMCAT_REQUEST_COUNT,
TOMCAT_MAX_TIME,
TOMCAT_PROCESSING_TIME,
// TODO: Pending on root cause why tomcat.threads can be negative
// TOMCAT_THREADS,
TOMCAT_TRAFFIC);
TOMCAT_TRAFFIC,
TOMCAT_THREADS);

// Kafka Metrics
public static final String KAFKA_MESSAGE_COUNT = "kafka.message.count";
Expand Down

0 comments on commit 36bb681

Please sign in to comment.