[Reconnoiter-devel] [reconnoiter commit] Reconnoiter branch, master, updated. 16ce15221b247e2c154c6c14f52a100bbe6e410e

git at labs.omniti.com git at labs.omniti.com
Tue Nov 22 00:05:17 EST 2011


Pushed by: jesus
The branch, master has been updated
       via  16ce15221b247e2c154c6c14f52a100bbe6e410e (commit)
      from  303e2b0c22be18290eb1265b3c602a66391fbe8b (commit)

Summary of changes:
 src/noit_check_log.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Log:
commit 16ce15221b247e2c154c6c14f52a100bbe6e410e
Author: Theo Schlossnagle <jesus at omniti.com>
Date:   Tue Nov 22 00:05:12 2011 -0500

    we weren't applying configured filters to metrics in bundles

diff --git a/src/noit_check_log.c b/src/noit_check_log.c
index b032f03..3a44130 100644
--- a/src/noit_check_log.c
+++ b/src/noit_check_log.c
@@ -360,6 +360,7 @@ noit_check_log_bundle_serialize(noit_log_stream_t ls, noit_check_t *check) {
     while(noit_hash_next(&c->metrics, &iter2, &key, &klen, &vm)) {
       /* If we apply the filter set and it returns false, we don't log */
       metric_t *m = (metric_t *)vm;
+      if(!noit_apply_filterset(check->filterset, check, m)) continue;
       bundle.metrics[i] = malloc(sizeof(Metric));
       metric__init(bundle.metrics[i]);
       _noit_check_log_bundle_metric(ls, bundle.metrics[i], m);
@@ -371,6 +372,7 @@ noit_check_log_bundle_serialize(noit_log_stream_t ls, noit_check_t *check) {
       }
       i++;
     }
+    bundle.n_metrics = i;
   }
 
   size = bundle__get_packed_size(&bundle);




hooks/post-receive
-- 
Reconnoiter


More information about the Reconnoiter-devel mailing list