Skip to content

Instantly share code, notes, and snippets.

@berngp
Last active December 28, 2015 04:19
Show Gist options
  • Save berngp/7441710 to your computer and use it in GitHub Desktop.
Save berngp/7441710 to your computer and use it in GitHub Desktop.
Example of the of Mesos Monitor Statistics JSON (monitor/statistics.json)
{
"activated_slaves": 1,
"build_date": "2013-11-07 10:40:03",
"build_time": 1383849603,
"build_user": "bernardo",
"completed_frameworks": [
{
"active": 1,
"completed_tasks": [
{
"executor_id": "",
"framework_id": "201311130008-18948385-5050-36280-0000",
"id": "Hello World 2",
"name": "Hello World 2",
"resources": {
"cpus": 1,
"mem": 128
},
"slave_id": "201311111401-3226798602-54769-95455-0",
"state": "TASK_FINISHED"
}
],
"id": "201311130008-18948385-5050-36280-0000",
"name": "",
"offers": [],
"registered_time": 1384330312.43327,
"resources": {},
"tasks": [],
"unregistered_time": 1384330372.58663,
"user": "bernardo"
},
{
"active": 1,
"completed_tasks": [
{
"executor_id": "",
"framework_id": "201311130008-18948385-5050-36280-0001",
"id": "Hello World 5",
"name": "Hello World 5",
"resources": {
"cpus": 1,
"mem": 128
},
"slave_id": "201311111401-3226798602-54769-95455-0",
"state": "TASK_FINISHED"
}
],
"id": "201311130008-18948385-5050-36280-0001",
"name": "",
"offers": [],
"registered_time": 1384330312.43359,
"resources": {},
"tasks": [],
"unregistered_time": 1384330373.50744,
"user": "bernardo"
},
{
"active": 1,
"completed_tasks": [
{
"executor_id": "",
"framework_id": "201311130008-18948385-5050-36280-0002",
"id": "Hello World 4",
"name": "Hello World 4",
"resources": {
"cpus": 1,
"mem": 128
},
"slave_id": "201311111401-3226798602-54769-95455-0",
"state": "TASK_FINISHED"
}
],
"id": "201311130008-18948385-5050-36280-0002",
"name": "",
"offers": [],
"registered_time": 1384330312.43409,
"resources": {},
"tasks": [],
"unregistered_time": 1384330374.50234,
"user": "bernardo"
},
{
"active": 1,
"completed_tasks": [
{
"executor_id": "",
"framework_id": "201311130008-18948385-5050-36280-0003",
"id": "Hello World 3",
"name": "Hello World 3",
"resources": {
"cpus": 1,
"mem": 128
},
"slave_id": "201311111401-3226798602-54769-95455-0",
"state": "TASK_FINISHED"
}
],
"id": "201311130008-18948385-5050-36280-0003",
"name": "",
"offers": [],
"registered_time": 1384330312.43434,
"resources": {},
"tasks": [],
"unregistered_time": 1384330375.50795,
"user": "bernardo"
},
{
"active": 1,
"completed_tasks": [
{
"executor_id": "",
"framework_id": "201311130008-18948385-5050-36280-0004",
"id": "Hello World 1",
"name": "Hello World 1",
"resources": {
"cpus": 1,
"mem": 128
},
"slave_id": "201311111401-3226798602-54769-95455-0",
"state": "TASK_FINISHED"
}
],
"id": "201311130008-18948385-5050-36280-0004",
"name": "",
"offers": [],
"registered_time": 1384330312.43626,
"resources": {},
"tasks": [],
"unregistered_time": 1384330433.55425,
"user": "bernardo"
}
],
"deactivated_slaves": 0,
"failed_tasks": 0,
"finished_tasks": 5,
"frameworks": [],
"id": "201311130008-18948385-5050-36280",
"killed_tasks": 0,
"leader": "master@33.33.33.1:5050",
"lost_tasks": 0,
"pid": "master@33.33.33.1:5050",
"slaves": [
{
"attributes": {},
"hostname": "bernardo-triton-mbp.local",
"id": "201311111401-3226798602-54769-95455-0",
"pid": "slave(1)@33.33.33.1:5050",
"registered_time": 1384330113.24692,
"reregistered_time": 1384330113.24693,
"resources": {
"cpus": 4,
"disk": 233112,
"mem": 7168,
"ports": "[31000-32000]"
}
}
],
"staged_tasks": 5,
"start_time": 1384330113.23589,
"started_tasks": 0,
"version": "0.16.0"
}
USER FRAMEWORK TASK SLAVE MEM TIME
bern... Hello ... bernardo-triton... 7.7 MB 00:00:00.070388
bern... Hello ... bernardo-triton... 7.8 MB 00:00:00.069557
bern... Hello ... bernardo-triton... 7.8 MB 00:00:00.087785
bern... Hello ... bernardo-triton... 7.7 MB 00:00:00.090573
[
{
"executor_id": "Hello World 1",
"executor_name": "Command Executor (Task: Hello World 1) (Command: sh -c 'sleep 60; ec...')",
"framework_id": "201311121554-3226798602-5050-7430-0008",
"source": "Hello World 1",
"statistics": {
"cpus_limit": 1,
"cpus_nr_periods": 0,
"cpus_nr_throttled": 0,
"cpus_system_time_secs": 0.040838835,
"cpus_throttled_time_secs": 0,
"cpus_user_time_secs": 0.031787679,
"mem_limit_bytes": 134217728,
"mem_rss_bytes": 8118272
}
},
{
"executor_id": "Hello World 2",
"executor_name": "Command Executor (Task: Hello World 2) (Command: sh -c 'sleep 60; ec...')",
"framework_id": "201311121554-3226798602-5050-7430-0007",
"source": "Hello World 2",
"statistics": {
"cpus_limit": 1,
"cpus_nr_periods": 0,
"cpus_nr_throttled": 0,
"cpus_system_time_secs": 0.041277483,
"cpus_throttled_time_secs": 0,
"cpus_user_time_secs": 0.030732134,
"mem_limit_bytes": 134217728,
"mem_rss_bytes": 8138752
}
},
{
"executor_id": "Hello World 5",
"executor_name": "Command Executor (Task: Hello World 5) (Command: sh -c 'sleep 60; ec...')",
"framework_id": "201311121554-3226798602-5050-7430-0006",
"source": "Hello World 5",
"statistics": {
"cpus_limit": 1,
"cpus_nr_periods": 0,
"cpus_nr_throttled": 0,
"cpus_system_time_secs": 0.052902184,
"cpus_throttled_time_secs": 0,
"cpus_user_time_secs": 0.037205494,
"mem_limit_bytes": 134217728,
"mem_rss_bytes": 8167424
}
},
{
"executor_id": "Hello World 4",
"executor_name": "Command Executor (Task: Hello World 4) (Command: sh -c 'sleep 60; ec...')",
"framework_id": "201311121554-3226798602-5050-7430-0005",
"source": "Hello World 4",
"statistics": {
"cpus_limit": 1,
"cpus_nr_periods": 0,
"cpus_nr_throttled": 0,
"cpus_system_time_secs": 0.056414527,
"cpus_throttled_time_secs": 0,
"cpus_user_time_secs": 0.036689625,
"mem_limit_bytes": 134217728,
"mem_rss_bytes": 8118272
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment