[
https://issues.apache.org/jira/browse/MESOS-4247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15080400#comment-15080400
]
haosdent commented on MESOS-4247:
---------------------------------
{noformat}
http http://xxx:5051/monitor/statistics
HTTP/1.1 200 OK
Content-Length: 364
Content-Type: application/json
Date: Sun, 03 Jan 2016 11:21:46 GMT
[
{
"executor_id": "test_sleep",
"executor_name": "Command Executor (Task: test_sleep) (Command: sh -c
'sleep 500')",
"framework_id": "1b63ee6a-4f26-45ca-b314-793fe2136fee-0000",
"source": "test_sleep",
"statistics": {
"cpus_limit": 1.1,
"cpus_system_time_secs": 0.23,
"cpus_user_time_secs": 0.64,
"mem_limit_bytes": 167772160,
"mem_rss_bytes": 55586816,
"timestamp": 1451820106.77759
}
}
]
{noformat}
I use latest mesos code, the return result have timestamp.
> Web UI monitor json loss timestamp
> ----------------------------------
>
> Key: MESOS-4247
> URL: https://issues.apache.org/jira/browse/MESOS-4247
> Project: Mesos
> Issue Type: Bug
> Components: webui
> Affects Versions: 0.26.0
> Environment: CentOS 7.0
> Mesos 0.26.0
> Marathon 0.13
> Reporter: Michael Zhang
> Priority: Minor
>
> When I use Web UI monitor CPU used for instance, found monitor json callback
> without timestamp and effect cpu used can't be display in web ui
> monitor url refresh:
> http://mesos-server:5051/monitor/statistics?jsonp=angular.callbacks._16w
> 0.22 with timestamp
> {code:xml}
> angular.callbacks._1u([{"executor_id":"xxxxx.323375c9-a94c-11e5-8fbb-86eb3605a5cc","executor_name":"Command
> Executor (Task: xxxxx.323375c9-a94c-11e5-8fbb-86eb3605a5cc) (Command: sh -c
> 'python
> start...')","framework_id":"20151009-143855-3926863626-5050-24484-0000","source":"xxxxx.323375c9-a94c-11e5-8fbb-86eb3605a5cc","statistics":{"cpus_limit":5.1,"cpus_system_time_secs":28.03,"cpus_user_time_secs":312.57,"mem_limit_bytes":5402263552,"mem_rss_bytes":425009152}},{"executor_id":xxxxx-test.e15fa934-a918-11e5-8fbb-86eb3605a5cc","executor_name":"Command
> Executor (Task: xxxxx-test.e15fa934-a918-11e5-8fbb-86eb3605a5cc) (Command:
> sh -c 'boinc\/boinc
> ...')","framework_id":"20151009-143855-3926863626-5050-24484-0000","source":"xxxxx-test.e15fa934-a918-11e5-8fbb-86eb3605a5cc","statistics":{"cpus_limit":5.1,"cpus_system_time_secs":133.11,"cpus_user_time_secs":438225.22,"mem_limit_bytes":8422162432,"mem_rss_bytes":38584320}}]);
> {code}
> 0.26 without timestamp
> {code:xml}
> angular.callbacks._46([{"executor_id":"torpedo.781bd286-97fc-11e5-bd8e-0cc47a5235cc","executor_name":"Command
> Executor (Task: xxxxxx.781bd286-97fc-11e5-bd8e-0cc47a5235cc) (Command: NO
> EXECUTABLE)","framework_id":"20150727-153101-3456970506-5050-32493-0000","source":"xxxxxx.781bd286-97fc-11e5-bd8e-0cc47a5235cc","statistics":{"cpus_limit":16.1,"cpus_system_time_secs":155083.63,"cpus_user_time_secs":100455.82,"mem_limit_bytes":33587986432,"mem_rss_bytes":667635712,"timestamp":1450946993.81198}},{"executor_id":"xxxxx-test.bba5aae5-97fb-11e5-bd8e-0cc47a5235cc","executor_name":"Command
> Executor (Task: xxxxx-test.bba5aae5-97fb-11e5-bd8e-0cc47a5235cc) (Command:
> sh -c 'boinc\/boinc
> ...')","framework_id":"20150727-153101-3456970506-5050-32493-0000","source":"boinc-test.bba5aae5-97fb-11e5-bd8e-0cc47a5235cc","statistics":{"cpus_limit":8.1,"cpus_system_time_secs":1103.55,"cpus_user_time_secs":4865.9,"mem_limit_bytes":8422162432,"mem_rss_bytes":28041216,"timestamp":1450946993.82719}}]);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)