GitHub user skonto opened a pull request:
https://github.com/apache/spark/pull/22381
[SPARK-25394][Core] Add application status metrics source
## What changes were proposed in this pull request?
- Exposes several metrics regarding application status as a source.
- Metrics are gathered when a job ends, could be more fine-grained but most
metrics like tasks completed are also counted by executors. More metrics could
be exposed in the future to avoid scraping executors.
## How was this patch tested?
This was manually tested with a jmx source and prometheus server:

You can merge this pull request into a Git repository by running:
$ git pull https://github.com/skonto/spark add_app_status_metrics
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/22381.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #22381
----
commit b43190d5393217f751f38149839a060df88baf1f
Author: Stavros Kontopoulos <stavros.kontopoulos@...>
Date: 2018-09-10T13:37:33Z
add application status source
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]