title: how to tell mesos frameworks which launched by different commands/parameters
body: <p>I am building metrics collector to collect the running status about all the Spark Jobs running on it. The mesos API <a href="http://masterip/frameworks" rel="nofollow noreferrer">http://masterip/frameworks</a> return a lot of details about all the frameworks and then I run <a href="http://slaveip/slave(1)/monitor/statistics" rel="nofollow noreferrer">http://slaveip/slave(1)/monitor/statistics</a> to get each frameworks detail info from each slave, then correlate them.</p>
  
  <p>This works fine for most of the jobs, but I have some jobs which behave different according to different parameters when submitting. They are shown as same framework name in Mesos GUI and I can not tell each other.</p>
  
  <p>Is there a way to get the detail full commands which launches the job? Or any other idea about how to tell them?</p>
  
  <p><a href="https://i.stack.imgur.com/R9bM3.png" rel="nofollow noreferrer">You can find there are multiple instances with same framework name. As they are different spark job instances.</a></p>
  
  <p>When I connect to Mesos slave, the monitor/statistics doesn't show the full command with all the parameters, so I can not tell which framework correlate to which Spark job instance.</p>
  
  <pre><code>  {
      "executor_id": "0",
      "executor_name": "Command Executor (Task: 0) (Command: sh -c ' 
  \"/usr/local...')",
      "framework_id": "06ba8de8-7fc3-422d-9ee3-17dd9ddcb2ca-3157",
      "source": "0",
      "statistics": {
        "cpus_limit": 2.1,
        "cpus_system_time_secs": 848.689999999,
        "cpus_user_time_secs": 5128.78,
        "mem_limit_bytes": 4757389312,
        "mem_rss_bytes": 2243149824,
        "timestamp": 1522858776.20098
      }
    },
  </code></pre>
  
  <p>Thanks</p>