1. Does hadoop metrics2 only support File and Ganglia sink? 2. Can I expose metrics as JMX, especially for customized metrics? I created some metrics in my mapreduce job and could successfully output them using a FileSink. But if I use jconsole to access YARN nodemanager, I can only see hadoop metrics e.g Hadoop/NodeManager/NodeManagerMetrices etc., not mine with prefix maptask. How to setup to see maptask/reducetask prefix metrics? 3. Is there an example using jmx? I could not find
The configuration syntax is: [prefix].[source|sink|jmx|].[instance].[option] http://hadoop.apache.org/docs/current/api/org/apache/hadoop/metrics2/package-summary.html