Hi Farid,
Sort of, I gave up getting the metrics from Ambari; instead I use Ambari only to retrieve the configuration and I get the metrics from the components themselves. HDFS and YARN components, they all have a REST API that exposes their JMX metrics in JSON.
Regards,