You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Paolo Rodeghiero <pa...@gmail.com> on 2011/12/10 12:50:16 UTC

Metrics2 filtering

Hello to the list,
I'm trying to filtering metrics2 using hadoop-metrics2.proprieties on 
Hadoop 0.20.203.
Reading the documentation and guessing source names from logs, I ended 
up with this:

> *.sink.file.class=org.apache.hadoop.metrics2.sink.FileSink
>
> namenode.sink.file.filename=metrics/namenode.out
> datanode.sink.file.filename=metrics/datanode.out
> jobtracker.sink.file.filename=metrics/jobtracker.out
> tasktracker.sink.file.filename=metrics/tasktracker.out
> maptask.sink.file.filename=metrics/maptask.out
> reducetask.sink.file.filename=metrics/reducetask.out
>
> *.source.filter.class=org.apache.hadoop.metrics2.filter.GlobFilter
> *.source.filter.include=jvm,DataNode

This isn't working: no filtering is performed. Moreover, if I specify
something like namenode.*.source.filter.include=jvm,DataNode the filter 
works but only including records from jvm context (and no dfs.* record).

Any suggestion on how can I make it work?
I just need a small bunch of tags from jvm, rpc and dfs contexts.

Thanks,
Paolo