diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/accumulator/MetricAggregationPolicySource.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/accumulator/MetricAggregationPolicySource.java index 283d9690..69e10abd 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/accumulator/MetricAggregationPolicySource.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/accumulator/MetricAggregationPolicySource.java @@ -37,6 +37,7 @@ public MetricAggregationPolicy policyForMetricName( String name) { MetricAggregationRules rules = rulesLoader.getRules(); List results = rules.apply( name ); + log.info("Print the aggregate name: " + name); return getInstance( results, rules.getRevision() ); } @@ -45,6 +46,7 @@ private MetricAggregationPolicy getInstance( List List aggregates = results.stream() .map( r -> new MetricAggregate( r.getAggregateName(), r.getMethod(), r.isDropOriginal() )) .collect( Collectors.toList() ); + log.info("Get the list of aggregates from the metric aggregation policy: " + aggregates.size()); return new MetricAggregationPolicy( revision, aggregates ); } } diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/accumulator/MetricAggregationRules.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/accumulator/MetricAggregationRules.java index f778a9d0..05f929e9 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/accumulator/MetricAggregationRules.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/accumulator/MetricAggregationRules.java @@ -49,6 +49,7 @@ public boolean isEmpty() public List apply( String metricName ) { List results = new ArrayList<>( ); + log.info("Metric Aggregation rules - get the metric name: " + metricName); for(MetricAggregationRule rule : rules) { diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/InputQueue.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/InputQueue.java index f41defec..81b06482 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/InputQueue.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/InputQueue.java @@ -210,6 +210,7 @@ private RejectionHandler queueRejectionHandler( String rejectPolicy ) t.drop(); }; } + log.info("Metric rejected - input queue"); } @Override diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/PointProcessorImpl.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/PointProcessorImpl.java index b9ffa4d9..40cb3ea2 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/PointProcessorImpl.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/PointProcessorImpl.java @@ -79,6 +79,7 @@ public void drain() @Override public void process( List points ) { + log.info("Process the data points"); Runnable task = taskBuilder.task(points); if( ex != null ) { ex.submit(task); diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/PointProcessorTask.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/PointProcessorTask.java index 77f96ef5..de53932c 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/PointProcessorTask.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/PointProcessorTask.java @@ -113,6 +113,7 @@ private void processSinglePoint( DataPoint t ) log.trace( "->" + t ); } nsCounter.count( t.name ); + log.info("Process single data point: " + t.name); auditLog.accept( t ); diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRule.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRule.java index 3bc360f9..daffc021 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRule.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRule.java @@ -52,7 +52,7 @@ public AggregationMethod apply(String name) { return method; } - + log.info("Get the metric name for single metric: " + name); Matcher m = pattern.matcher( name ); return m.find() ? method : null; } diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRules.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRules.java index a1212d56..e8a5df26 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRules.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRules.java @@ -44,6 +44,7 @@ public AggregationMethod apply( String metricName ) for(StorageAggregationRule rule : rules) { + log.info("apply the storage aggregation rule: " + metricName); method = rule.apply( metricName ); if( method != null ) {