Ganglia looks like a good option for what you need. Gangalia is a maven project , so to use it you need to put
-Pspark-ganglia-lgpl option in mvn command when you build the project.
mvn -Pspark-ganglia-lgpl -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -DskipTests clean package