Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzxu-crm committed Aug 31, 2024
1 parent bcdc618 commit 71607f4
Showing 1 changed file with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,21 +297,45 @@ public int put( DataPoints points )
try {
for (int i = 0, n = points.size(); i < n; i++) {
DataPoint p = points.get(i);
if (p.name != null && p.name.startsWith("pod222.ecom_ag.bjmr.bjmr_prd") && p.name.endsWith("number-of-filters.max")) {
log.warn("============");
log.warn("Received aggregated metric " + p.name);
log.warn(p.toString());
log.warn("============");
}
if (!p.isValid()) {
if (p.name != null && p.name.startsWith("pod222.ecom_ag.bjmr.bjmr_prd") && p.name.endsWith("number-of-filters.max")) {
log.warn("============");
log.warn("Invalid aggregated metric " + p.name);
log.warn(p.toString());
log.warn("============");
}
continue;
}

if (!p.hasMetricId()) {
if (p.name != null && p.name.startsWith("pod222.ecom_ag.bjmr.bjmr_prd") && p.name.endsWith("number-of-filters.max")) {
log.warn("============");
log.warn("No metric ID aggregated metric " + p.name);
log.warn(p.toString());
log.warn("============");
}
continue;
}

if (!isWithinRetentionPeriod(p, now)) {
if (p.name != null && p.name.startsWith("pod222.ecom_ag.bjmr.bjmr_prd") && p.name.endsWith("number-of-filters.max")) {
log.warn("============");
log.warn("Outside retention period aggregated metric " + p.name);
log.warn(p + " " + now);
log.warn("============");
}
continue;
}

if (p.name != null && p.name.startsWith("pod222.ecom_ag.bjmr.bjmr_prd") && p.name.endsWith("number-of-filters.max")) {
log.warn("============");
log.warn("Received aggregated metric " + p.name);
log.warn("Valid aggregated metric " + p.name);
log.warn(p.toString());
log.warn("============");
}
Expand Down

0 comments on commit 71607f4

Please sign in to comment.