git clone git@github.com:soloradish/yarn_exporter.git
cd yarn_exporter
pip install -r requirements.txt
If YARN restful API on http://127.0.0.1:8088
>> ./yarn_exporter.py http://127.0.0.1:8088
-Hor--hostexporter's listen address, default is"0.0.0.0".-por--portexporter's listen port, default is9459-nor--cluster-nameyarn cluster's name, default is"cluster_0""-cor--collected-appsyarn applications name, default isNone
>> ./yarn_exporter.py http://127.0.0.1:8088 -c streaming_app1 streaming_app2
Will get additional metrics of running apps count.
yarn_apps_running_by_name{app_name="streaming_app1",cluster="cluster_0"} 3.0