How to get all the metrics via Metrics Servlet in JSON format (as in Web UI) from Apache Spark -
the apache spark web ui gives ton of useful information workers, driver, storage etc. metrics servlet gives few information. eg, following /metrics/json :
{ "version":"3.0.0", "gauges":{ "local-1431683138663.<driver>.blockmanager.disk.diskspaceused_mb":{ "value":0 }, "local-1431683138663.<driver>.blockmanager.memory.maxmem_mb":{ "value":3179 }, "local-1431683138663.<driver>.blockmanager.memory.memused_mb":{ "value":169 }, "local-1431683138663.<driver>.blockmanager.memory.remainingmem_mb":{ "value":3009 }, "local-1431683138663.<driver>.dagscheduler.job.activejobs":{ "value":1 }, "local-1431683138663.<driver>.dagscheduler.job.alljobs":{ "value":1 }, "local-1431683138663.<driver>.dagscheduler.stage.failedstages":{ "value":0 }, "local-1431683138663.<driver>.dagscheduler.stage.runningstages":{ "value":1 }, "local-1431683138663.<driver>.dagscheduler.stage.waitingstages":{ "value":0 } }, "counters":{ }, "histograms":{ }, "meters":{ }, "timers":{ } }
how other metrics storage etc.?
all data available in spark monitoring rest api version 1.4 onwards. apache spark!
link : http://spark.apache.org/docs/latest/monitoring.html#rest-api
Comments
Post a Comment