Skip to content

Commit

Permalink
Debug bjmr metric
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzxu-crm committed Aug 30, 2024
1 parent 6bef019 commit ada6aa3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ void add( DataPoint m, long currentTimeInMillis )
// one metric can map to 0..N aggregates
List<MetricAggregate> aggregates = policy.getAggregates();

if (m.name.startsWith("pod222.ecom.bjmr.bjmr_prd") && m.name.endsWith("number-of-filters.max")) {
log.warn("============");
log.warn("Received metrics " + m.name);
for (MetricAggregate aggregate : aggregates) {
log.warn(aggregate.getAggregateName() + " " + aggregate.getAggregationMethod().name() + " " + aggregate.isDropOriginal());
}
log.warn("============");
}

// no aggregates for this metric - done.
if( aggregates.size() == 0 )
{
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=1.1.57-SNAPSHOT
version=1.1.57-W-16554282
org.gradle.jvmargs=--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED
org.gradle.daemon=true
springbootVersion=3.3.2
Expand Down

0 comments on commit ada6aa3

Please sign in to comment.