http://git-wip-us.apache.org/repos/asf/ambari/blob/a52f8a55/ambari-server/src/test/resources/ams/multiple_component_metrics.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/resources/ams/multiple_component_metrics.json b/ambari-server/src/test/resources/ams/multiple_component_metrics.json new file mode 100644 index 0000000..3d231fa --- /dev/null +++ b/ambari-server/src/test/resources/ams/multiple_component_metrics.json @@ -0,0 +1,1274 @@ +{"metrics": [ + { + "timestamp": 1416528819358, + "type": "Float", + "metricname": "jvm.JvmMetrics.MemHeapCommittedM", + "appid": "namenode", + "hostname": "h1", + "starttime": 1416528759232, + "metrics": { + "1416528759232": 1004.0, + "1416528769231": 1004.0, + "1416528779231": 1004.0, + "1416528789231": 1004.0, + "1416528799231": 1004.0, + "1416528809231": 1004.0, + "1416528819232": 1004.0, + "1416528829231": 1004.0, + "1416528839232": 1004.0, + "1416528849231": 1004.0, + "1416528859231": 1004.0, + "1416528869231": 1004.0, + "1416528879231": 1004.0, + "1416528889231": 1004.0, + "1416528899232": 1004.0, + "1416528909231": 1004.0, + "1416528919232": 1004.0, + "1416528929231": 1004.0, + "1416528939231": 1004.0, + "1416528949231": 1004.0, + "1416528959232": 1004.0, + "1416528969231": 1004.0, + "1416528979231": 1004.0, + "1416528989231": 1004.0, + "1416528999231": 1004.0, + "1416529009231": 1004.0, + "1416529019231": 1004.0, + "1416529029231": 1004.0, + "1416529039231": 1004.0, + "1416529049231": 1004.0, + "1416529059231": 1004.0, + "1416529069231": 1004.0, + "1416529079231": 1004.0, + "1416529089231": 1004.0, + "1416529099231": 1004.0, + "1416529109232": 1004.0, + "1416529119232": 1004.0, + "1416529129231": 1004.0, + "1416529139231": 1004.0, + "1416529149231": 1004.0, + "1416529159231": 1004.0, + "1416529169231": 1004.0, + "1416529179231": 1004.0, + "1416529189231": 1004.0, + "1416529199231": 1004.0, + "1416529209231": 1004.0, + "1416529219232": 1004.0, + "1416529229231": 1004.0, + "1416529239232": 1004.0, + "1416529249231": 1004.0, + "1416529259231": 1004.0, + "1416529269232": 1004.0, + "1416529279231": 1004.0, + "1416529289231": 1004.0, + "1416529299231": 1004.0, + "1416529309232": 1004.0, + "1416529319232": 1004.0, + "1416529329231": 1004.0, + "1416529339231": 1004.0, + "1416529349231": 1004.0, + "1416529359232": 1004.0, + "1416529369231": 1004.0, + "1416529379231": 1004.0, + "1416529389232": 1004.0, + "1416529399231": 1004.0, + "1416529409231": 1004.0, + "1416529419231": 1004.0, + "1416529429232": 1004.0, + "1416529439231": 1004.0, + "1416529449231": 1004.0, + "1416529459231": 1004.0, + "1416529469231": 1004.0, + "1416529479231": 1004.0, + "1416529489231": 1004.0, + "1416529499231": 1004.0, + "1416529509231": 1004.0, + "1416529519232": 1004.0, + "1416529529231": 1004.0, + "1416529539231": 1004.0, + "1416529549231": 1004.0, + "1416529559232": 1004.0, + "1416529569231": 1004.0, + "1416529579231": 1004.0, + "1416529589231": 1004.0, + "1416529599231": 1004.0, + "1416529609232": 1004.0, + "1416529619231": 1004.0, + "1416529629231": 1004.0, + "1416529639231": 1004.0, + "1416529649231": 1004.0, + "1416529659232": 1004.0, + "1416529669231": 1004.0, + "1416529679231": 1004.0, + "1416529689231": 1004.0, + "1416529699231": 1004.0, + "1416529709231": 1004.0, + "1416529719231": 1004.0, + "1416529729231": 1004.0, + "1416529739231": 1004.0, + "1416529749231": 1004.0, + "1416529759231": 1004.0, + "1416529769231": 1004.0, + "1416529779231": 1004.0, + "1416529789231": 1004.0, + "1416529799231": 1004.0, + "1416529809232": 1004.0, + "1416529819231": 1004.0, + "1416529829231": 1004.0, + "1416529839231": 1004.0, + "1416529849231": 1004.0, + "1416529859231": 1004.0, + "1416529869231": 1004.0, + "1416529879231": 1004.0, + "1416529889231": 1004.0, + "1416529899232": 1004.0, + "1416529909231": 1004.0, + "1416529919231": 1004.0, + "1416529929231": 1004.0, + "1416529939232": 1004.0, + "1416529949231": 1004.0, + "1416529959231": 1004.0, + "1416529969231": 1004.0, + "1416529979231": 1004.0, + "1416529989231": 1004.0, + "1416529999231": 1004.0, + "1416530009232": 1004.0, + "1416530019231": 1004.0, + "1416530029231": 1004.0, + "1416530039231": 1004.0, + "1416530049231": 1004.0, + "1416530059232": 1004.0, + "1416530069231": 1004.0, + "1416530079231": 1004.0, + "1416530089231": 1004.0, + "1416530099232": 1004.0, + "1416530109232": 1004.0, + "1416530119231": 1004.0, + "1416530129231": 1004.0, + "1416530139231": 1004.0, + "1416530149231": 1004.0, + "1416530159232": 1004.0, + "1416530169231": 1004.0, + "1416530179231": 1004.0, + "1416530189232": 1004.0, + "1416530199231": 1004.0, + "1416530209231": 1004.0, + "1416530219231": 1004.0, + "1416530229231": 1004.0, + "1416530239231": 1004.0, + "1416530249231": 1004.0, + "1416530259231": 1004.0, + "1416530269232": 1004.0, + "1416530279231": 1004.0, + "1416530289231": 1004.0, + "1416530299231": 1004.0, + "1416530309231": 1004.0, + "1416530319232": 1004.0, + "1416530329231": 1004.0, + "1416530339231": 1004.0, + "1416530349231": 1004.0, + "1416530359232": 1004.0, + "1416530369231": 1004.0, + "1416530379231": 1004.0, + "1416530389231": 1004.0, + "1416530399231": 1004.0, + "1416530409231": 1004.0, + "1416530419231": 1004.0, + "1416530429231": 1004.0, + "1416530439232": 1004.0, + "1416530449231": 1004.0, + "1416530459231": 1004.0, + "1416530469232": 1004.0, + "1416530479231": 1004.0, + "1416530489231": 1004.0, + "1416530499231": 1004.0, + "1416530509232": 1004.0, + "1416530519231": 1004.0, + "1416530529231": 1004.0, + "1416530539231": 1004.0, + "1416530549231": 1004.0, + "1416530559232": 1004.0, + "1416530569231": 1004.0, + "1416530579231": 1004.0, + "1416530589231": 1004.0, + "1416530599231": 1004.0, + "1416530609231": 1004.0, + "1416530619231": 1004.0, + "1416530629231": 1004.0, + "1416530639231": 1004.0, + "1416530649231": 1004.0, + "1416530659232": 1004.0, + "1416530669232": 1004.0, + "1416530679231": 1004.0, + "1416530689231": 1004.0, + "1416530699231": 1004.0, + "1416530709231": 1004.0, + "1416530719231": 1004.0, + "1416530729231": 1004.0, + "1416530739231": 1004.0, + "1416530749231": 1004.0, + "1416530759231": 1004.0, + "1416530769231": 1004.0, + "1416530779231": 1004.0, + "1416530789232": 1004.0, + "1416530799231": 1004.0, + "1416530809231": 1004.0, + "1416530819231": 1004.0, + "1416530829231": 1004.0, + "1416530839231": 1004.0, + "1416530849232": 1004.0, + "1416530859231": 1004.0, + "1416530869231": 1004.0, + "1416530879231": 1004.0, + "1416530889231": 1004.0, + "1416530899231": 1004.0, + "1416530909231": 1004.0, + "1416530919231": 1004.0, + "1416530929231": 1004.0, + "1416530939231": 1004.0, + "1416530949231": 1004.0, + "1416530959232": 1004.0, + "1416530969231": 1004.0, + "1416530979231": 1004.0, + "1416530989231": 1004.0, + "1416530999232": 1004.0, + "1416531009231": 1004.0, + "1416531019231": 1004.0, + "1416531029232": 1004.0, + "1416531039231": 1004.0, + "1416531049231": 1004.0, + "1416531059231": 1004.0, + "1416531069231": 1004.0, + "1416531079231": 1004.0, + "1416531089231": 1004.0, + "1416531099231": 1004.0, + "1416531109231": 1004.0, + "1416531119231": 1004.0, + "1416531129231": 1004.0, + "1416531139231": 1004.0, + "1416531149231": 1004.0, + "1416531159232": 1004.0, + "1416531169231": 1004.0, + "1416531179232": 1004.0, + "1416531189231": 1004.0, + "1416531199231": 1004.0, + "1416531209231": 1004.0, + "1416531219231": 1004.0, + "1416531229231": 1004.0, + "1416531239231": 1004.0, + "1416531249231": 1004.0, + "1416531259231": 1004.0, + "1416531269232": 1004.0, + "1416531279231": 1004.0, + "1416531289231": 1004.0, + "1416531299231": 1004.0, + "1416531309231": 1004.0, + "1416531319231": 1004.0, + "1416531329231": 1004.0, + "1416531339231": 1004.0, + "1416531349231": 1004.0, + "1416531359231": 1004.0, + "1416531369232": 1004.0, + "1416531379231": 1004.0, + "1416531389231": 1004.0, + "1416531399231": 1004.0, + "1416531409231": 1004.0, + "1416531419231": 1004.0, + "1416531429231": 1004.0, + "1416531439231": 1004.0, + "1416531449232": 1004.0, + "1416531459231": 1004.0, + "1416531469231": 1004.0, + "1416531479232": 1004.0, + "1416531489231": 1004.0, + "1416531499231": 1004.0, + "1416531509231": 1004.0, + "1416531519231": 1004.0, + "1416531529231": 1004.0, + "1416531539231": 1004.0, + "1416531549231": 1004.0, + "1416531559231": 1004.0, + "1416531569232": 1004.0, + "1416531579232": 1004.0, + "1416531589231": 1004.0, + "1416531599232": 1004.0, + "1416531609232": 1004.0, + "1416531619231": 1004.0, + "1416531629231": 1004.0, + "1416531639232": 1004.0, + "1416531649231": 1004.0, + "1416531659231": 1004.0, + "1416531669232": 1004.0, + "1416531679231": 1004.0, + "1416531689231": 1004.0, + "1416531699232": 1004.0, + "1416531709231": 1004.0, + "1416531719231": 1004.0, + "1416531729231": 1004.0, + "1416531739231": 1004.0, + "1416531749231": 1004.0, + "1416531759232": 1004.0, + "1416531769232": 1004.0, + "1416531779231": 1004.0, + "1416531789231": 1004.0, + "1416531799231": 1004.0, + "1416531809231": 1004.0, + "1416531819231": 1004.0, + "1416531829231": 1004.0 + } + }, + { + "timestamp": 1416528819358, + "type": "Float", + "metricname": "jvm.JvmMetrics.MemHeapUsedM", + "appid": "namenode", + "hostname": "myroslav-ams1-1.c.pramod-thangali.internal", + "starttime": 1416528759232, + "metrics": { + "1416528759232": 86.13651275634766, + "1416528769231": 91.95879364013672, + "1416528779231": 95.23177337646484, + "1416528789231": 95.5689468383789, + "1416528799231": 101.97948455810547, + "1416528809231": 108.25263977050781, + "1416528819232": 110.98297119140625, + "1416528829231": 122.7314453125, + "1416528839232": 126.6842269897461, + "1416528849231": 130.2022705078125, + "1416528859231": 133.38302612304688, + "1416528869231": 137.0576629638672, + "1416528879231": 137.3927001953125, + "1416528889231": 149.77720642089844, + "1416528899232": 152.8067169189453, + "1416528909231": 155.37149047851562, + "1416528919232": 158.91586303710938, + "1416528929231": 160.26210021972656, + "1416528939231": 163.25595092773438, + "1416528949231": 165.39151000976562, + "1416528959232": 168.01808166503906, + "1416528969231": 170.87008666992188, + "1416528979231": 174.46278381347656, + "1416528989231": 175.8971710205078, + "1416528999231": 179.08877563476562, + "1416529009231": 182.50537109375, + "1416529019231": 183.84988403320312, + "1416529029231": 187.40855407714844, + "1416529039231": 49.13157653808594, + "1416529049231": 52.956077575683594, + "1416529059231": 55.05748748779297, + "1416529069231": 58.37134552001953, + "1416529079231": 61.00816345214844, + "1416529089231": 62.40888214111328, + "1416529099231": 65.89781951904297, + "1416529109232": 68.53271484375, + "1416529119232": 70.9174575805664, + "1416529129231": 73.594970703125, + "1416529139231": 76.07904052734375, + "1416529149231": 79.0537109375, + "1416529159231": 82.43315124511719, + "1416529169231": 85.10110473632812, + "1416529179231": 86.6574478149414, + "1416529189231": 91.17852020263672, + "1416529199231": 92.74954223632812, + "1416529209231": 95.44292449951172, + "1416529219232": 99.15261840820312, + "1416529229231": 100.7690200805664, + "1416529239232": 103.28071594238281, + "1416529249231": 108.32449340820312, + "1416529259231": 110.80814361572266, + "1416529269232": 112.46534729003906, + "1416529279231": 116.46556091308594, + "1416529289231": 119.1341552734375, + "1416529299231": 120.35954284667969, + "1416529309232": 124.9245834350586, + "1416529319232": 126.24668884277344, + "1416529329231": 128.96336364746094, + "1416529339231": 133.7814178466797, + "1416529349231": 135.09902954101562, + "1416529359232": 138.28228759765625, + "1416529369231": 140.95191955566406, + "1416529379231": 143.91778564453125, + "1416529389232": 146.35659790039062, + "1416529399231": 150.09341430664062, + "1416529409231": 152.7617645263672, + "1416529419231": 154.15933227539062, + "1416529429232": 157.84848022460938, + "1416529439231": 159.17007446289062, + "1416529449231": 163.16064453125, + "1416529459231": 168.08102416992188, + "1416529469231": 170.47125244140625, + "1416529479231": 173.64691162109375, + "1416529489231": 178.63229370117188, + "1416529499231": 181.4005126953125, + "1416529509231": 182.66925048828125, + "1416529519232": 186.28668212890625, + "1416529529231": 190.34625244140625, + "1416529539231": 191.48960876464844, + "1416529549231": 194.95082092285156, + "1416529559232": 39.818397521972656, + "1416529569231": 43.22258758544922, + "1416529579231": 45.754798889160156, + "1416529589231": 48.241676330566406, + "1416529599231": 51.851844787597656, + "1416529609232": 53.99681854248047, + "1416529619231": 56.7972412109375, + "1416529629231": 58.454833984375, + "1416529639231": 62.97972106933594, + "1416529649231": 64.50111389160156, + "1416529659232": 67.7923583984375, + "1416529669231": 72.07826232910156, + "1416529679231": 73.4608383178711, + "1416529689231": 76.04764556884766, + "1416529699231": 79.75759887695312, + "1416529709231": 83.38968658447266, + "1416529719231": 85.88829803466797, + "1416529729231": 88.23152160644531, + "1416529739231": 91.82879638671875, + "1416529749231": 93.13980865478516, + "1416529759231": 96.92898559570312, + "1416529769231": 98.68280792236328, + "1416529779231": 101.55584716796875, + "1416529789231": 105.79437255859375, + "1416529799231": 107.12966918945312, + "1416529809232": 110.65377807617188, + "1416529819231": 113.04840850830078, + "1416529829231": 115.84850311279297, + "1416529839231": 118.5450210571289, + "1416529849231": 122.75308990478516, + "1416529859231": 126.22663116455078, + "1416529869231": 127.53783416748047, + "1416529879231": 132.33648681640625, + "1416529889231": 133.85780334472656, + "1416529899232": 136.29405212402344, + "1416529909231": 140.04425048828125, + "1416529919231": 141.55145263671875, + "1416529929231": 144.91354370117188, + "1416529939232": 147.29998779296875, + "1416529949231": 150.8963623046875, + "1416529959231": 152.13775634765625, + "1416529969231": 156.79518127441406, + "1416529979231": 159.67880249023438, + "1416529989231": 161.3001251220703, + "1416529999231": 165.0872802734375, + "1416530009232": 167.26199340820312, + "1416530019231": 170.79776000976562, + "1416530029231": 173.2576904296875, + "1416530039231": 175.83612060546875, + "1416530049231": 178.77487182617188, + "1416530059232": 181.3012237548828, + "1416530069231": 183.93211364746094, + "1416530079231": 186.154541015625, + "1416530089231": 190.40928649902344, + "1416530099232": 37.983673095703125, + "1416530109232": 41.06791687011719, + "1416530119231": 44.833824157714844, + "1416530129231": 46.308876037597656, + "1416530139231": 49.02454376220703, + "1416530149231": 51.981666564941406, + "1416530159232": 55.246849060058594, + "1416530169231": 55.24720764160156, + "1416530179231": 56.45558166503906, + "1416530189232": 56.622291564941406, + "1416530199231": 58.296661376953125, + "1416530209231": 59.30780029296875, + "1416530219231": 59.52452087402344, + "1416530229231": 60.51924133300781, + "1416530239231": 62.193359375, + "1416530249231": 62.521392822265625, + "1416530259231": 62.89204406738281, + "1416530269232": 64.14915466308594, + "1416530279231": 64.31597137451172, + "1416530289231": 65.99793243408203, + "1416530299231": 67.5147933959961, + "1416530309231": 67.68063354492188, + "1416530319232": 67.9161605834961, + "1416530329231": 69.07908630371094, + "1416530339231": 69.84813690185547, + "1416530349231": 70.27980041503906, + "1416530359232": 71.28060913085938, + "1416530369231": 72.26927947998047, + "1416530379231": 73.85135650634766, + "1416530389231": 75.90526580810547, + "1416530399231": 76.11003112792969, + "1416530409231": 76.20790100097656, + "1416530419231": 77.14493560791016, + "1416530429231": 78.13539123535156, + "1416530439232": 78.94215393066406, + "1416530449231": 80.11368560791016, + "1416530459231": 80.4076919555664, + "1416530469232": 81.91958618164062, + "1416530479231": 83.01402282714844, + "1416530489231": 83.46538543701172, + "1416530499231": 83.65599060058594, + "1416530509232": 86.0855484008789, + "1416530519231": 86.21674346923828, + "1416530529231": 86.31195068359375, + "1416530539231": 87.73928833007812, + "1416530549231": 87.93827819824219, + "1416530559232": 88.92060089111328, + "1416530569231": 90.85848999023438, + "1416530579231": 91.66273498535156, + "1416530589231": 92.0223388671875, + "1416530599231": 93.79692077636719, + "1416530609231": 93.96021270751953, + "1416530619231": 94.1949234008789, + "1416530629231": 95.00786590576172, + "1416530639231": 95.30278015136719, + "1416530649231": 96.85398864746094, + "1416530659232": 98.91751861572266, + "1416530669232": 98.98576354980469, + "1416530679231": 99.28092193603516, + "1416530689231": 100.48242950439453, + "1416530699231": 101.35484313964844, + "1416530709231": 101.49181365966797, + "1416530719231": 103.73983001708984, + "1416530729231": 104.0280990600586, + "1416530739231": 105.06510162353516, + "1416530749231": 106.6201400756836, + "1416530759231": 106.91200256347656, + "1416530769231": 107.04505157470703, + "1416530779231": 108.34712219238281, + "1416530789232": 110.01893615722656, + "1416530799231": 110.11385345458984, + "1416530809231": 110.92040252685547, + "1416530819231": 111.35908508300781, + "1416530829231": 111.51753234863281, + "1416530839231": 114.27119445800781, + "1416530849232": 114.65271759033203, + "1416530859231": 115.32182312011719, + "1416530869231": 116.25740051269531, + "1416530879231": 117.18795013427734, + "1416530889231": 117.44708251953125, + "1416530899231": 118.7392807006836, + "1416530909231": 118.900146484375, + "1416530919231": 119.08570861816406, + "1416530929231": 121.5535888671875, + "1416530939231": 122.59136199951172, + "1416530949231": 122.65423583984375, + "1416530959232": 124.21446990966797, + "1416530969231": 124.46994018554688, + "1416530979231": 125.27067565917969, + "1416530989231": 126.54083251953125, + "1416530999232": 127.33380889892578, + "1416531009231": 127.4707260131836, + "1416531019231": 129.24632263183594, + "1416531029232": 130.15481567382812, + "1416531039231": 130.6470947265625, + "1416531049231": 135.646728515625, + "1416531059231": 136.94960021972656, + "1416531069231": 140.97645568847656, + "1416531079231": 143.58712768554688, + "1416531089231": 146.31175231933594, + "1416531099231": 147.66131591796875, + "1416531109231": 151.81982421875, + "1416531119231": 153.9597930908203, + "1416531129231": 156.77029418945312, + "1416531139231": 160.4677276611328, + "1416531149231": 162.5469512939453, + "1416531159232": 164.62454223632812, + "1416531169231": 165.7913055419922, + "1416531179232": 165.99609375, + "1416531189231": 166.22305297851562, + "1416531199231": 168.15341186523438, + "1416531209231": 169.83377075195312, + "1416531219231": 169.83412170410156, + "1416531229231": 170.77142333984375, + "1416531239231": 171.19546508789062, + "1416531249231": 172.0252227783203, + "1416531259231": 172.97027587890625, + "1416531269232": 173.17111206054688, + "1416531279231": 174.0956573486328, + "1416531289231": 176.51174926757812, + "1416531299231": 176.8062744140625, + "1416531309231": 177.70443725585938, + "1416531319231": 178.96884155273438, + "1416531329231": 179.0371551513672, + "1416531339231": 180.24664306640625, + "1416531349231": 182.05194091796875, + "1416531359231": 182.2147216796875, + "1416531369232": 182.34771728515625, + "1416531379231": 183.58535766601562, + "1416531389231": 184.2918701171875, + "1416531399231": 185.45147705078125, + "1416531409231": 186.46282958984375, + "1416531419231": 187.1946258544922, + "1416531429231": 188.3573760986328, + "1416531439231": 189.6304168701172, + "1416531449232": 189.76683044433594, + "1416531459231": 190.09202575683594, + "1416531469231": 35.17481994628906, + "1416531479232": 35.91218566894531, + "1416531489231": 36.74237060546875, + "1416531499231": 37.94520568847656, + "1416531509231": 38.16871643066406, + "1416531519231": 39.00250244140625, + "1416531529231": 40.178993225097656, + "1416531539231": 40.87315368652344, + "1416531549231": 41.307830810546875, + "1416531559231": 43.79560852050781, + "1416531569232": 43.866668701171875, + "1416531579232": 44.16259002685547, + "1416531589231": 45.332672119140625, + "1416531599232": 45.482765197753906, + "1416531609232": 46.940093994140625, + "1416531619231": 48.034263610839844, + "1416531629231": 48.855812072753906, + "1416531639232": 49.19670104980469, + "1416531649231": 50.59795379638672, + "1416531659231": 50.722984313964844, + "1416531669232": 50.987274169921875, + "1416531679231": 52.96116638183594, + "1416531689231": 53.15229034423828, + "1416531699232": 54.720863342285156, + "1416531709231": 55.874000549316406, + "1416531719231": 57.617103576660156, + "1416531729231": 59.668914794921875, + "1416531739231": 63.3280029296875, + "1416531749231": 66.11625671386719, + "1416531759232": 68.75650024414062, + "1416531769232": 71.91178131103516, + "1416531779231": 74.66859436035156, + "1416531789231": 77.71449279785156, + "1416531799231": 78.98372650146484, + "1416531809231": 79.31558990478516, + "1416531819231": 79.94538116455078, + "1416531829231": 81.15962219238281 + } + }, + { + "timestamp": 1416528819358, + "type": "Float", + "metricname": "jvm.JvmMetrics.MemNonHeapCommittedM", + "appid": "namenode", + "hostname": "myroslav-ams1-1.c.pramod-thangali.internal", + "starttime": 1416528759232, + "metrics": { + "1416528759232": 130.4375, + "1416528769231": 130.4375, + "1416528779231": 130.4375, + "1416528789231": 130.4375, + "1416528799231": 130.4375, + "1416528809231": 130.4375, + "1416528819232": 130.4375, + "1416528829231": 130.4375, + "1416528839232": 130.4375, + "1416528849231": 130.4375, + "1416528859231": 130.4375, + "1416528869231": 130.4375, + "1416528879231": 130.4375, + "1416528889231": 130.4375, + "1416528899232": 130.4375, + "1416528909231": 130.4375, + "1416528919232": 130.4375, + "1416528929231": 130.4375, + "1416528939231": 130.4375, + "1416528949231": 130.4375, + "1416528959232": 130.4375, + "1416528969231": 130.4375, + "1416528979231": 130.4375, + "1416528989231": 130.4375, + "1416528999231": 130.4375, + "1416529009231": 130.4375, + "1416529019231": 130.4375, + "1416529029231": 130.4375, + "1416529039231": 130.4375, + "1416529049231": 130.4375, + "1416529059231": 130.4375, + "1416529069231": 130.4375, + "1416529079231": 130.4375, + "1416529089231": 130.4375, + "1416529099231": 130.4375, + "1416529109232": 130.4375, + "1416529119232": 130.4375, + "1416529129231": 130.4375, + "1416529139231": 130.4375, + "1416529149231": 130.4375, + "1416529159231": 130.4375, + "1416529169231": 130.4375, + "1416529179231": 130.4375, + "1416529189231": 130.4375, + "1416529199231": 130.4375, + "1416529209231": 130.4375, + "1416529219232": 130.4375, + "1416529229231": 130.4375, + "1416529239232": 130.4375, + "1416529249231": 130.4375, + "1416529259231": 130.4375, + "1416529269232": 130.4375, + "1416529279231": 130.4375, + "1416529289231": 130.4375, + "1416529299231": 130.4375, + "1416529309232": 130.4375, + "1416529319232": 130.4375, + "1416529329231": 130.4375, + "1416529339231": 130.4375, + "1416529349231": 130.4375, + "1416529359232": 130.4375, + "1416529369231": 130.4375, + "1416529379231": 130.4375, + "1416529389232": 130.4375, + "1416529399231": 130.4375, + "1416529409231": 130.4375, + "1416529419231": 130.4375, + "1416529429232": 130.4375, + "1416529439231": 130.4375, + "1416529449231": 130.4375, + "1416529459231": 130.4375, + "1416529469231": 130.4375, + "1416529479231": 130.4375, + "1416529489231": 130.4375, + "1416529499231": 130.4375, + "1416529509231": 130.4375, + "1416529519232": 130.4375, + "1416529529231": 130.4375, + "1416529539231": 130.4375, + "1416529549231": 130.4375, + "1416529559232": 130.4375, + "1416529569231": 130.4375, + "1416529579231": 130.4375, + "1416529589231": 130.4375, + "1416529599231": 130.4375, + "1416529609232": 130.4375, + "1416529619231": 130.4375, + "1416529629231": 130.4375, + "1416529639231": 130.4375, + "1416529649231": 130.4375, + "1416529659232": 130.4375, + "1416529669231": 130.5, + "1416529679231": 130.5, + "1416529689231": 130.5, + "1416529699231": 130.5, + "1416529709231": 130.5, + "1416529719231": 130.5, + "1416529729231": 130.5, + "1416529739231": 130.5, + "1416529749231": 130.5, + "1416529759231": 130.5, + "1416529769231": 130.5, + "1416529779231": 130.5, + "1416529789231": 130.5, + "1416529799231": 130.5, + "1416529809232": 130.5, + "1416529819231": 130.5, + "1416529829231": 130.5, + "1416529839231": 130.5, + "1416529849231": 130.5, + "1416529859231": 130.5, + "1416529869231": 130.5, + "1416529879231": 130.5, + "1416529889231": 130.5, + "1416529899232": 130.5, + "1416529909231": 130.5, + "1416529919231": 130.5, + "1416529929231": 130.5, + "1416529939232": 130.5, + "1416529949231": 130.5, + "1416529959231": 130.5, + "1416529969231": 130.5, + "1416529979231": 130.5, + "1416529989231": 130.5, + "1416529999231": 130.5, + "1416530009232": 130.5, + "1416530019231": 130.5, + "1416530029231": 130.5625, + "1416530039231": 130.5625, + "1416530049231": 130.5625, + "1416530059232": 130.5625, + "1416530069231": 130.5625, + "1416530079231": 130.5625, + "1416530089231": 130.5625, + "1416530099232": 130.5625, + "1416530109232": 130.5625, + "1416530119231": 130.5625, + "1416530129231": 130.5625, + "1416530139231": 130.5625, + "1416530149231": 130.5625, + "1416530159232": 130.5625, + "1416530169231": 130.5625, + "1416530179231": 130.5625, + "1416530189232": 130.5625, + "1416530199231": 130.5625, + "1416530209231": 130.5625, + "1416530219231": 130.5625, + "1416530229231": 130.5625, + "1416530239231": 130.5625, + "1416530249231": 130.5625, + "1416530259231": 130.5625, + "1416530269232": 130.5625, + "1416530279231": 130.5625, + "1416530289231": 130.5625, + "1416530299231": 130.5625, + "1416530309231": 130.5625, + "1416530319232": 130.5625, + "1416530329231": 130.5625, + "1416530339231": 130.5625, + "1416530349231": 130.5625, + "1416530359232": 130.5625, + "1416530369231": 130.5625, + "1416530379231": 130.5625, + "1416530389231": 130.5625, + "1416530399231": 130.5625, + "1416530409231": 130.5625, + "1416530419231": 130.5625, + "1416530429231": 130.5625, + "1416530439232": 130.5625, + "1416530449231": 130.5625, + "1416530459231": 130.5625, + "1416530469232": 130.5625, + "1416530479231": 130.5625, + "1416530489231": 130.5625, + "1416530499231": 130.5625, + "1416530509232": 130.5625, + "1416530519231": 130.5625, + "1416530529231": 130.5625, + "1416530539231": 130.625, + "1416530549231": 130.625, + "1416530559232": 130.625, + "1416530569231": 130.625, + "1416530579231": 130.6875, + "1416530589231": 130.6875, + "1416530599231": 130.6875, + "1416530609231": 130.6875, + "1416530619231": 130.6875, + "1416530629231": 130.6875, + "1416530639231": 130.6875, + "1416530649231": 130.6875, + "1416530659232": 130.6875, + "1416530669232": 130.6875, + "1416530679231": 130.6875, + "1416530689231": 130.6875, + "1416530699231": 130.6875, + "1416530709231": 130.6875, + "1416530719231": 130.6875, + "1416530729231": 130.6875, + "1416530739231": 130.6875, + "1416530749231": 130.6875, + "1416530759231": 130.6875, + "1416530769231": 130.6875, + "1416530779231": 130.6875, + "1416530789232": 130.6875, + "1416530799231": 130.6875, + "1416530809231": 130.6875, + "1416530819231": 130.6875, + "1416530829231": 130.6875, + "1416530839231": 130.6875, + "1416530849232": 130.6875, + "1416530859231": 130.6875, + "1416530869231": 130.6875, + "1416530879231": 130.6875, + "1416530889231": 130.6875, + "1416530899231": 130.6875, + "1416530909231": 130.6875, + "1416530919231": 130.6875, + "1416530929231": 130.6875, + "1416530939231": 130.6875, + "1416530949231": 130.75, + "1416530959232": 130.75, + "1416530969231": 130.75, + "1416530979231": 130.75, + "1416530989231": 130.75, + "1416530999232": 130.75, + "1416531009231": 130.75, + "1416531019231": 130.75, + "1416531029232": 130.75, + "1416531039231": 130.75, + "1416531049231": 130.75, + "1416531059231": 130.75, + "1416531069231": 130.75, + "1416531079231": 130.75, + "1416531089231": 130.75, + "1416531099231": 130.75, + "1416531109231": 130.75, + "1416531119231": 130.75, + "1416531129231": 130.8125, + "1416531139231": 130.8125, + "1416531149231": 130.8125, + "1416531159232": 130.8125, + "1416531169231": 130.8125, + "1416531179232": 130.8125, + "1416531189231": 130.8125, + "1416531199231": 130.8125, + "1416531209231": 130.8125, + "1416531219231": 130.8125, + "1416531229231": 130.8125, + "1416531239231": 130.8125, + "1416531249231": 130.8125, + "1416531259231": 130.8125, + "1416531269232": 130.8125, + "1416531279231": 130.8125, + "1416531289231": 130.8125, + "1416531299231": 130.8125, + "1416531309231": 130.8125, + "1416531319231": 130.8125, + "1416531329231": 130.8125, + "1416531339231": 130.8125, + "1416531349231": 130.8125, + "1416531359231": 130.8125, + "1416531369232": 130.8125, + "1416531379231": 130.8125, + "1416531389231": 130.8125, + "1416531399231": 130.8125, + "1416531409231": 130.8125, + "1416531419231": 130.8125, + "1416531429231": 130.8125, + "1416531439231": 130.8125, + "1416531449232": 130.8125, + "1416531459231": 130.8125, + "1416531469231": 130.8125, + "1416531479232": 130.8125, + "1416531489231": 130.8125, + "1416531499231": 130.8125, + "1416531509231": 130.8125, + "1416531519231": 130.8125, + "1416531529231": 130.8125, + "1416531539231": 130.8125, + "1416531549231": 130.8125, + "1416531559231": 130.8125, + "1416531569232": 130.8125, + "1416531579232": 130.8125, + "1416531589231": 130.8125, + "1416531599232": 130.8125, + "1416531609232": 130.8125, + "1416531619231": 130.8125, + "1416531629231": 130.8125, + "1416531639232": 130.8125, + "1416531649231": 130.8125, + "1416531659231": 130.8125, + "1416531669232": 130.875, + "1416531679231": 130.875, + "1416531689231": 130.875, + "1416531699232": 130.875, + "1416531709231": 130.875, + "1416531719231": 130.875, + "1416531729231": 130.875, + "1416531739231": 130.875, + "1416531749231": 130.875, + "1416531759232": 130.875, + "1416531769232": 130.875, + "1416531779231": 130.875, + "1416531789231": 130.9375, + "1416531799231": 130.9375, + "1416531809231": 130.9375, + "1416531819231": 130.9375, + "1416531829231": 130.9375 + } + }, + { + "timestamp": 1416528819358, + "type": "Float", + "metricname": "jvm.JvmMetrics.MemNonHeapUsedM", + "appid": "namenode", + "hostname": "myroslav-ams1-1.c.pramod-thangali.internal", + "starttime": 1416528759232, + "metrics": { + "1416528759232": 34.884742736816406, + "1416528769231": 35.045501708984375, + "1416528779231": 35.11096954345703, + "1416528789231": 35.1461181640625, + "1416528799231": 35.63744354248047, + "1416528809231": 36.13847351074219, + "1416528819232": 36.246849060058594, + "1416528829231": 37.210609436035156, + "1416528839232": 37.58374786376953, + "1416528849231": 37.64448547363281, + "1416528859231": 37.65846252441406, + "1416528869231": 37.68560791015625, + "1416528879231": 37.718658447265625, + "1416528889231": 37.74351501464844, + "1416528899232": 37.76300048828125, + "1416528909231": 37.77123260498047, + "1416528919232": 37.77970886230469, + "1416528929231": 37.79204559326172, + "1416528939231": 37.79833221435547, + "1416528949231": 37.81165313720703, + "1416528959232": 37.83971405029297, + "1416528969231": 37.84618377685547, + "1416528979231": 37.842254638671875, + "1416528989231": 37.840728759765625, + "1416528999231": 37.85149383544922, + "1416529009231": 37.87505340576172, + "1416529019231": 37.87805938720703, + "1416529029231": 37.88288879394531, + "1416529039231": 37.944923400878906, + "1416529049231": 37.94856262207031, + "1416529059231": 37.95183563232422, + "1416529069231": 37.964622497558594, + "1416529079231": 37.96544647216797, + "1416529089231": 37.970367431640625, + "1416529099231": 37.984619140625, + "1416529109232": 37.98963165283203, + "1416529119232": 37.99200439453125, + "1416529129231": 37.99256134033203, + "1416529139231": 38.04901123046875, + "1416529149231": 38.065635681152344, + "1416529159231": 38.07423400878906, + "1416529169231": 38.09894561767578, + "1416529179231": 38.138427734375, + "1416529189231": 38.153724670410156, + "1416529199231": 38.155311584472656, + "1416529209231": 38.15692138671875, + "1416529219232": 38.16850280761719, + "1416529229231": 38.171058654785156, + "1416529239232": 38.17353820800781, + "1416529249231": 38.18403625488281, + "1416529259231": 38.201744079589844, + "1416529269232": 38.202423095703125, + "1416529279231": 38.208282470703125, + "1416529289231": 38.20885467529297, + "1416529299231": 38.21363830566406, + "1416529309232": 38.219482421875, + "1416529319232": 38.23176574707031, + "1416529329231": 38.23841857910156, + "1416529339231": 38.2474365234375, + "1416529349231": 38.252220153808594, + "1416529359232": 38.31468200683594, + "1416529369231": 38.31592559814453, + "1416529379231": 38.3170166015625, + "1416529389232": 38.336021423339844, + "1416529399231": 38.340789794921875, + "1416529409231": 38.3597412109375, + "1416529419231": 38.36310577392578, + "1416529429232": 38.366119384765625, + "1416529439231": 38.367408752441406, + "1416529449231": 38.36756896972656, + "1416529459231": 38.36991882324219, + "1416529469231": 38.36991882324219, + "1416529479231": 38.36991882324219, + "1416529489231": 38.375205993652344, + "1416529499231": 38.375770568847656, + "1416529509231": 38.38554382324219, + "1416529519232": 38.387725830078125, + "1416529529231": 38.389869689941406, + "1416529539231": 38.389869689941406, + "1416529549231": 38.391944885253906, + "1416529559232": 38.393096923828125, + "1416529569231": 38.393096923828125, + "1416529579231": 38.394500732421875, + "1416529589231": 38.394500732421875, + "1416529599231": 38.398529052734375, + "1416529609232": 38.399871826171875, + "1416529619231": 38.399871826171875, + "1416529629231": 38.399871826171875, + "1416529639231": 38.40162658691406, + "1416529649231": 38.40162658691406, + "1416529659232": 38.40162658691406, + "1416529669231": 38.42073059082031, + "1416529679231": 38.42255401611328, + "1416529689231": 38.42486572265625, + "1416529699231": 38.42797088623047, + "1416529709231": 38.429832458496094, + "1416529719231": 38.43194580078125, + "1416529729231": 38.43212127685547, + "1416529739231": 38.43280029296875, + "1416529749231": 38.43280029296875, + "1416529759231": 38.440093994140625, + "1416529769231": 38.44049835205078, + "1416529779231": 38.44049835205078, + "1416529789231": 38.44102478027344, + "1416529799231": 38.44140625, + "1416529809232": 38.4423828125, + "1416529819231": 38.4432373046875, + "1416529829231": 38.4432373046875, + "1416529839231": 38.44940185546875, + "1416529849231": 38.449432373046875, + "1416529859231": 38.449432373046875, + "1416529869231": 38.45240783691406, + "1416529879231": 38.45349884033203, + "1416529889231": 38.45349884033203, + "1416529899232": 38.45484161376953, + "1416529909231": 38.455039978027344, + "1416529919231": 38.455413818359375, + "1416529929231": 38.455413818359375, + "1416529939232": 38.455413818359375, + "1416529949231": 38.455780029296875, + "1416529959231": 38.45613098144531, + "1416529969231": 38.45613098144531, + "1416529979231": 38.456787109375, + "1416529989231": 38.456787109375, + "1416529999231": 38.45233154296875, + "1416530009232": 38.45233154296875, + "1416530019231": 38.45233154296875, + "1416530029231": 38.494468688964844, + "1416530039231": 38.501060485839844, + "1416530049231": 38.508750915527344, + "1416530059232": 38.50907897949219, + "1416530069231": 38.50907897949219, + "1416530079231": 38.50907897949219, + "1416530089231": 38.509605407714844, + "1416530099232": 38.509605407714844, + "1416530109232": 38.509605407714844, + "1416530119231": 38.509605407714844, + "1416530129231": 38.509605407714844, + "1416530139231": 38.510955810546875, + "1416530149231": 38.513694763183594, + "1416530159232": 38.51594543457031, + "1416530169231": 38.51594543457031, + "1416530179231": 38.51594543457031, + "1416530189232": 38.51594543457031, + "1416530199231": 38.51594543457031, + "1416530209231": 38.52467346191406, + "1416530219231": 38.53492736816406, + "1416530229231": 38.53498840332031, + "1416530239231": 38.53498840332031, + "1416530249231": 38.53498840332031, + "1416530259231": 38.53498840332031, + "1416530269232": 38.53498840332031, + "1416530279231": 38.53919982910156, + "1416530289231": 38.53941345214844, + "1416530299231": 38.54460144042969, + "1416530309231": 38.54460144042969, + "1416530319232": 38.54460144042969, + "1416530329231": 38.54460144042969, + "1416530339231": 38.544761657714844, + "1416530349231": 38.544761657714844, + "1416530359232": 38.545310974121094, + "1416530369231": 38.545570373535156, + "1416530379231": 38.564491271972656, + "1416530389231": 38.556861877441406, + "1416530399231": 38.570960998535156, + "1416530409231": 38.57173156738281, + "1416530419231": 38.57331848144531, + "1416530429231": 38.574058532714844, + "1416530439232": 38.57450866699219, + "1416530449231": 38.57566833496094, + "1416530459231": 38.57566833496094, + "1416530469232": 38.57566833496094, + "1416530479231": 38.57660675048828, + "1416530489231": 38.576759338378906, + "1416530499231": 38.577857971191406, + "1416530509232": 38.57801818847656, + "1416530519231": 38.57951354980469, + "1416530529231": 38.57972717285156, + "1416530539231": 38.59886169433594, + "1416530549231": 38.59925842285156, + "1416530559232": 38.61207580566406, + "1416530569231": 38.61695098876953, + "1416530579231": 38.65550231933594, + "1416530589231": 38.655662536621094, + "1416530599231": 38.655662536621094, + "1416530609231": 38.656044006347656, + "1416530619231": 38.656044006347656, + "1416530629231": 38.65635681152344, + "1416530639231": 38.65657043457031, + "1416530649231": 38.65679168701172, + "1416530659232": 38.65824890136719, + "1416530669232": 38.65937805175781, + "1416530679231": 38.65937805175781, + "1416530689231": 38.65937805175781, + "1416530699231": 38.65937805175781, + "1416530709231": 38.660125732421875, + "1416530719231": 38.666770935058594, + "1416530729231": 38.666770935058594, + "1416530739231": 38.666770935058594, + "1416530749231": 38.692100524902344, + "1416530759231": 38.6923828125, + "1416530769231": 38.6923828125, + "1416530779231": 38.693023681640625, + "1416530789232": 38.693023681640625, + "1416530799231": 38.693267822265625, + "1416530809231": 38.694366455078125, + "1416530819231": 38.70233154296875, + "1416530829231": 38.70250701904297, + "1416530839231": 38.70665740966797, + "1416530849232": 38.70665740966797, + "1416530859231": 38.711097717285156, + "1416530869231": 38.711097717285156, + "1416530879231": 38.711097717285156, + "1416530889231": 38.711097717285156, + "1416530899231": 38.71845245361328, + "1416530909231": 38.71845245361328, + "1416530919231": 38.71875, + "1416530929231": 38.72480010986328, + "1416530939231": 38.72480010986328, + "1416530949231": 38.72791290283203, + "1416530959232": 38.72791290283203, + "1416530969231": 38.72791290283203, + "1416530979231": 38.72791290283203, + "1416530989231": 38.73023223876953, + "1416530999232": 38.73078155517578, + "1416531009231": 38.73078155517578, + "1416531019231": 38.73139190673828, + "1416531029232": 38.731964111328125, + "1416531039231": 38.731964111328125, + "1416531049231": 38.7342529296875, + "1416531059231": 38.7342529296875, + "1416531069231": 38.7342529296875, + "1416531079231": 38.737884521484375, + "1416531089231": 38.737884521484375, + "1416531099231": 38.737884521484375, + "1416531109231": 38.737884521484375, + "1416531119231": 38.737884521484375, + "1416531129231": 38.78429412841797, + "1416531139231": 38.785118103027344, + "1416531149231": 38.785797119140625, + "1416531159232": 38.786590576171875, + "1416531169231": 38.786590576171875, + "1416531179232": 38.798248291015625, + "1416531189231": 38.798248291015625, + "1416531199231": 38.798248291015625, + "1416531209231": 38.798248291015625, + "1416531219231": 38.798248291015625, + "1416531229231": 38.798248291015625, + "1416531239231": 38.798622131347656, + "1416531249231": 38.798622131347656, + "1416531259231": 38.798622131347656, + "1416531269232": 38.798622131347656, + "1416531279231": 38.798622131347656, + "1416531289231": 38.798622131347656, + "1416531299231": 38.798622131347656, + "1416531309231": 38.798622131347656, + "1416531319231": 38.798622131347656, + "1416531329231": 38.798622131347656, + "1416531339231": 38.798622131347656, + "1416531349231": 38.798622131347656, + "1416531359231": 38.798622131347656, + "1416531369232": 38.798622131347656, + "1416531379231": 38.798622131347656, + "1416531389231": 38.798622131347656, + "1416531399231": 38.798622131347656, + "1416531409231": 38.798622131347656, + "1416531419231": 38.798622131347656, + "1416531429231": 38.798622131347656, + "1416531439231": 38.798622131347656, + "1416531449232": 38.79905700683594, + "1416531459231": 38.799232482910156, + "1416531469231": 38.799232482910156, + "1416531479232": 38.799232482910156, + "1416531489231": 38.807899475097656, + "1416531499231": 38.80815124511719, + "1416531509231": 38.80818176269531, + "1416531519231": 38.81214904785156, + "1416531529231": 38.814117431640625, + "1416531539231": 38.814117431640625, + "1416531549231": 38.814117431640625, + "1416531559231": 38.815391540527344, + "1416531569232": 38.815391540527344, + "1416531579232": 38.815391540527344, + "1416531589231": 38.815391540527344, + "1416531599232": 38.815391540527344, + "1416531609232": 38.815391540527344, + "1416531619231": 38.815391540527344, + "1416531629231": 38.81708526611328, + "1416531639232": 38.82593536376953, + "1416531649231": 38.82593536376953, + "1416531659231": 38.837745666503906, + "1416531669232": 38.883827209472656, + "1416531679231": 38.883827209472656, + "1416531689231": 38.883827209472656, + "1416531699232": 38.883827209472656, + "1416531709231": 38.883827209472656, + "1416531719231": 38.88421630859375, + "1416531729231": 38.88421630859375, + "1416531739231": 38.88421630859375, + "1416531749231": 38.88421630859375, + "1416531759232": 38.885498046875, + "1416531769232": 38.88581085205078, + "1416531779231": 38.88726043701172, + "1416531789231": 38.93041229248047, + "1416531799231": 38.930442810058594, + "1416531809231": 38.930442810058594, + "1416531819231": 38.930442810058594, + "1416531829231": 38.930442810058594 + } + } +]} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/a52f8a55/ambari-server/src/test/resources/ams/multiple_host_metrics.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/resources/ams/multiple_host_metrics.json b/ambari-server/src/test/resources/ams/multiple_host_metrics.json new file mode 100644 index 0000000..98d821a --- /dev/null +++ b/ambari-server/src/test/resources/ams/multiple_host_metrics.json @@ -0,0 +1,215 @@ +{"metrics": [ + { + "timestamp": 1416445244801, + "metricname": "cpu_user", + "appid": "HOST", + "starttime": 1416445244801, + "metrics": { + "1416446384801": 4027.0550000000003, + "1416445244801": 4006.085, + "1416448711363": 4105.6875, + "1416446744801": 4032.82, + "1416446969801": 4036.255, + "1416445544801": 4011.4975000000004, + "1416446849801": 4034.4725, + "1416446024801": 4020.96, + "1416445979801": 4020.2975, + "1416448921363": 4109.2625, + "1416446144801": 4022.98, + "1416447569801": 4046.865, + "1416445394801": 4008.37, + "1416445319801": 4007.21, + "1416445484801": 4009.9525, + "1416446939801": 4035.7175, + "1416447419801": 4044.52, + "1416447464801": 4045.325, + "1416445634801": 4013.3424999999997, + "1416447299801": 4041.85, + "1416446459801": 4028.2799999999997, + "1416446804801": 4033.7475, + "1416446099801": 4022.2, + "1416447074801": 4038.2025, + "1416446699801": 4032.0175, + "1416446819801": 4033.9700000000003, + "1416446249801": 4024.925, + "1416445724801": 4015.73, + "1416446579801": 4030.1800000000003, + "1416445379801": 4008.0425000000005, + "1416447284801": 4041.51, + "1416446114801": 4022.3775, + "1416447179801": 4039.9025, + "1416448861363": 4107.545, + "1416448801363": 4106.74, + "1416446834801": 4034.1425, + "1416448741363": 4105.9574999999995, + "1416445259801": 4006.29, + "1416445499801": 4010.19, + "1416446474801": 4028.4275, + "1416448936363": 4109.4, + "1416445529801": 4011.3424999999997, + "1416447554801": 4046.55, + "1416446684801": 4031.7825, + "1416445424801": 4009.08, + "1416447584801": 4047.0550000000003, + "1416447434801": 4044.705, + "1416446084801": 4021.9725, + "1416446504801": 4028.98, + "1416446354801": 4026.5275, + "1416446339801": 4026.4125, + "1416445619801": 4012.9325, + "1416447059801": 4038.045, + "1416447089801": 4038.7, + "1416445304801": 4007.1025, + "1416445649801": 4013.9225, + "1416446204801": 4023.9425, + "1416445289801": 4006.9474999999998, + "1416447224801": 4040.59, + "1416446444801": 4028.0975, + "1416446984801": 4036.435, + "1416446609801": 4030.745, + "1416446729801": 4032.5525, + "1416446129801": 4022.7275, + "1416447644801": 4049.255, + "1416447164801": 4039.7375, + "1416446009801": 4020.825, + "1416448816363": 4106.9175, + "1416446219801": 4024.245, + "1416447539801": 4046.3975, + "1416445739801": 4015.8599999999997, + "1416446594801": 4030.365, + "1416445409801": 4008.9474999999998, + "1416447314801": 4042.6525, + "1416445679801": 4014.58, + "1416446924801": 4035.54, + "1416446624801": 4030.895, + "1416445994801": 4020.4624999999996, + "1416448846363": 4107.3525, + "1416445604801": 4012.57, + "1416446714801": 4032.2025, + "1416445514801": 4010.8725, + "1416445364801": 4007.8375, + "1416448681363": 4105.1125, + "1416447329801": 4043.1025, + "1416446234801": 4024.5275, + "1416447209801": 4040.42, + "1416448696363": 4105.3625, + "1416446954801": 4035.885, + "1416447404801": 4044.265, + "1416445559801": 4011.665, + "1416447044801": 4037.8475, + "1416447194801": 4040.08, + "1416445964801": 4020.1075, + "1416446324801": 4026.2075, + "1416446264801": 4025.03, + "1416448831363": 4107.2, + "1416446864801": 4034.635, + "1416448756363": 4106.07, + "1416446564801": 4030.005, + "1416445664801": 4014.1949999999997, + "1416447104801": 4038.855, + "1416448726363": 4105.842500000001, + "1416447344801": 4043.29, + "1416445274801": 4006.6475, + "1416448876363": 4107.65, + "1416445439801": 4009.185, + "1416446489801": 4028.8375, + "1416446369801": 4026.915, + "1416447524801": 4046.2525, + "1416447449801": 4045.09 + } + }, + { + "timestamp": 1416445244801, + "metricname": "mem_free", + "appid": "HOST", + "starttime": 1416445244801, + "metrics": { + "1416486255040": "2.46145024E8", + "1416486305088": "2.46898688E8", + "1416486270053": "2.44318208E8", + "1416486260042": "2.46280192E8", + "1416486285067": "2.464768E8", + "1416486295077": "2.46898688E8", + "1416486275058": "2.464768E8", + "1416486300083": "2.46898688E8", + "1416486250037": "2.46272E8", + "1416486265047": "2.4641536E8", + "1416486290072": "2.46898688E8", + "1416486280063": "2.464768E8", + "1416486345123": "2.46898688E8", + "1416486320102": "2.46898688E8", + "1416486360135": "2.464768E8", + "1416486335113": "2.47025664E8", + "1416486310093": "2.4676352E8", + "1416486350128": "2.46595584E8", + "1416486325105": "2.46898688E8", + "1416486365140": "2.46603776E8", + "1416486340118": "2.47025664E8", + "1416486315097": "2.4676352E8", + "1416486330107": "2.46898688E8", + "1416486355133": "2.46341632E8", + "1416486370145": "2.46468608E8", + "1416486410180": "2.46898688E8", + "1416486395169": "2.464768E8", + "1416486385161": "2.464768E8", + "1416486400172": "2.464768E8", + "1416486415182": "2.47025664E8", + "1416486375151": "2.46341632E8", + "1416486390166": "2.464768E8", + "1416486425193": "2.47025664E8", + "1416486405177": "2.46603776E8", + "1416486420187": "2.47025664E8", + "1416486380156": "2.464768E8", + "1416486460224": "2.46890496E8", + "1416486435203": "2.4676352E8", + "1416486430198": "2.46890496E8", + "1416486450218": "2.46890496E8", + "1416486465229": "2.46890496E8", + "1416486480237": "2.4619008E8", + "1416486440208": "2.46898688E8", + "1416486475235": "2.46181888E8", + "1416486470230": "2.4643584E8", + "1416486455223": "2.46890496E8", + "1416486485242": "2.46317056E8", + "1416486445213": "2.46890496E8", + "1416486515266": "2.4619008E8", + "1416486490244": "2.46181888E8", + "1416486530279": "2.46890496E8", + "1416486545291": "2.47017472E8", + "1416486505260": "2.46317056E8", + "1416486520270": "2.4619008E8", + "1416486495249": "2.46181888E8", + "1416486535282": "2.46890496E8", + "1416486510261": "2.46317056E8", + "1416486540287": "2.46890496E8", + "1416486525276": "2.46317056E8", + "1416486500255": "2.46317056E8", + "1416486555300": "2.46882304E8", + "1416486570309": "2.47025664E8", + "1416486585321": "2.47025664E8", + "1416486600331": "2.46603776E8", + "1416486560301": "2.46890496E8", + "1416486575314": "2.47025664E8", + "1416486590325": "2.4672256E8", + "1416486550295": "2.46882304E8", + "1416486605336": "2.46603776E8", + "1416486565306": "2.47025664E8", + "1416486580315": "2.47025664E8", + "1416486595327": "2.46468608E8", + "1416486610337": "2.46595584E8", + "1416486650370": "2.47025664E8", + "1416486635365": "2.46603776E8", + "1416486625350": "2.46730752E8", + "1416486640360": "2.46603776E8", + "1416486665385": "2.4715264E8", + "1416486615342": "2.46468608E8", + "1416486655375": "2.4715264E8", + "1416486630354": "2.46730752E8", + "1416486645368": "2.46730752E8", + "1416486620345": "2.46603776E8", + "1416486660380": "2.4715264E8", + "1416486675392": "2.46890496E8", + "1416486690404": "2.47025664E8" + } + } +]} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/a52f8a55/ambari-server/src/test/resources/ams/single_component_metrics.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/resources/ams/single_component_metrics.json b/ambari-server/src/test/resources/ams/single_component_metrics.json new file mode 100644 index 0000000..1cbbb3c --- /dev/null +++ b/ambari-server/src/test/resources/ams/single_component_metrics.json @@ -0,0 +1,250 @@ +{"metrics": [ + { + "timestamp": 1416528819469, + "type": "Double", + "metricname": "rpc.rpc.RpcQueueTimeAvgTime", + "appid": "namenode", + "hostname": "h1", + "starttime": 1416528759233, + "metrics": { + "1416528759233": 10.333333333333332, + "1416528769232": 0.75, + "1416528779232": 0.16666666666666669, + "1416528789233": 0.2, + "1416528799232": 0.5, + "1416528809232": 1.6, + "1416528819233": 0.0, + "1416528829232": 0.0, + "1416528839232": 0.33333333333333337, + "1416528849232": 0.33333333333333337, + "1416528859232": 0.25, + "1416528869232": 0.0, + "1416528879232": 0.25, + "1416528889232": 1.0, + "1416528899232": 0.25, + "1416528909232": 0.5, + "1416528919232": 0.25, + "1416528929232": 0.6666666666666667, + "1416528939232": 0.33333333333333337, + "1416528949232": 0.25, + "1416528959233": 0.2, + "1416528969232": 0.25, + "1416528979232": 0.0, + "1416528989232": 0.4, + "1416528999232": 0.33333333333333337, + "1416529009232": 0.25, + "1416529019232": 0.0, + "1416529029232": 0.0, + "1416529039232": 0.0, + "1416529049232": 0.0, + "1416529059232": 0.2, + "1416529069232": 1.0, + "1416529079232": 0.5, + "1416529089232": 0.0, + "1416529099232": 0.0, + "1416529109232": 0.0, + "1416529119232": 0.5, + "1416529129232": 0.5, + "1416529139232": 0.0, + "1416529149232": 0.0, + "1416529159232": 0.5, + "1416529169232": 1.0, + "1416529179232": 0.4, + "1416529189232": 0.0, + "1416529199232": 0.4, + "1416529209232": 1.0, + "1416529219232": 0.25, + "1416529229232": 0.0, + "1416529239232": 0.0, + "1416529249231": 0.5, + "1416529259232": 0.0, + "1416529269232": 0.5, + "1416529279232": 0.0, + "1416529289232": 0.0, + "1416529299232": 0.4, + "1416529309232": 0.0, + "1416529319232": 0.0, + "1416529329232": 0.0, + "1416529339232": 0.25, + "1416529349232": 0.0, + "1416529359232": 0.0, + "1416529369232": 0.0, + "1416529379232": 0.0, + "1416529389233": 0.5, + "1416529399232": 1.0, + "1416529409232": 0.0, + "1416529419232": 0.2, + "1416529429232": 0.0, + "1416529439232": 0.5, + "1416529449232": 0.5, + "1416529459231": 0.5, + "1416529469232": 0.0, + "1416529479232": 0.33333333333333337, + "1416529489231": 0.25, + "1416529499232": 0.6, + "1416529509232": 0.25, + "1416529519232": 0.5, + "1416529529232": 0.0, + "1416529539232": 0.25, + "1416529549232": 0.25, + "1416529559232": 0.33333333333333337, + "1416529569232": 1.0, + "1416529579232": 0.0, + "1416529589232": 0.33333333333333337, + "1416529599232": 0.0, + "1416529609232": 1.0, + "1416529619232": 0.25, + "1416529629232": 0.25, + "1416529639232": 0.0, + "1416529649232": 0.6, + "1416529659232": 0.0, + "1416529669232": 0.25, + "1416529679231": 0.0, + "1416529689232": 0.5, + "1416529699232": 0.25, + "1416529709232": 0.3333333333333333, + "1416529719232": 1.0, + "1416529729232": 0.5, + "1416529739231": 0.4, + "1416529749232": 0.25, + "1416529759232": 0.0, + "1416529769231": 0.6, + "1416529779232": 0.5, + "1416529789232": 0.0, + "1416529799232": 0.0, + "1416529809232": 0.5, + "1416529819232": 0.0, + "1416529829232": 0.0, + "1416529839231": 0.2, + "1416529849232": 0.0, + "1416529859232": 0.0, + "1416529869231": 0.25, + "1416529879232": 0.0, + "1416529889231": 0.6666666666666666, + "1416529899233": 0.0, + "1416529909232": 0.25, + "1416529919232": 0.0, + "1416529929232": 0.0, + "1416529939232": 0.5, + "1416529949232": 0.0, + "1416529959232": 0.4, + "1416529969231": 0.5, + "1416529979232": 0.25, + "1416529989232": 0.5, + "1416529999232": 0.5, + "1416530009232": 0.0, + "1416530019232": 0.5, + "1416530029232": 0.0, + "1416530039232": 0.5, + "1416530049232": 0.5, + "1416530059233": 0.0, + "1416530069232": 0.0, + "1416530079232": 0.0, + "1416530089232": 0.0, + "1416530099232": 0.2, + "1416530109232": 0.0, + "1416530119232": 0.75, + "1416530129232": 0.33333333333333337, + "1416530139232": 1.0, + "1416530149232": 0.5, + "1416530159233": 0.25, + "1416530169232": 0.12500000000000003, + "1416530179232": 0.5, + "1416530189233": 0.14285714285714288, + "1416530199232": 0.33333333333333337, + "1416530209231": 0.33333333333333337, + "1416530219232": 0.5, + "1416530229232": 0.25000000000000006, + "1416530239231": 0.0, + "1416530249232": 0.14285714285714288, + "1416530259232": 0.25000000000000006, + "1416530269232": 0.5714285714285714, + "1416530279232": 0.28571428571428575, + "1416530289232": 0.375, + "1416530299232": 0.33333333333333337, + "1416530309232": 0.14285714285714288, + "1416530319232": 0.4444444444444444, + "1416530329232": 0.0, + "1416530339232": 0.33333333333333337, + "1416530349232": 0.0, + "1416530359232": 0.16666666666666669, + "1416530369232": 0.28571428571428575, + "1416530379232": 0.3333333333333333, + "1416530389231": 0.5, + "1416530399232": 0.33333333333333337, + "1416530409232": 0.375, + "1416530419232": 0.16666666666666669, + "1416530429231": 0.0, + "1416530439232": 0.2222222222222222, + "1416530449232": 0.16666666666666669, + "1416530459232": 0.28571428571428575, + "1416530469232": 0.125, + "1416530479232": 0.33333333333333337, + "1416530489232": 0.4285714285714286, + "1416530499232": 0.375, + "1416530509232": 0.2857142857142857, + "1416530519232": 0.33333333333333337, + "1416530529232": 0.12500000000000003, + "1416530539232": 0.8333333333333334, + "1416530549232": 0.4285714285714286, + "1416530559232": 0.11111111111111113, + "1416530569232": 0.16666666666666669, + "1416530579232": 0.16666666666666669, + "1416530589232": 0.375, + "1416530599231": 0.0, + "1416530609232": 0.28571428571428575, + "1416530619232": 0.33333333333333337, + "1416530629232": 0.0, + "1416530639232": 0.0, + "1416530649232": 0.25, + "1416530659232": 0.33333333333333337, + "1416530669232": 0.14285714285714288, + "1416530679232": 0.33333333333333337, + "1416530689232": 0.16666666666666669, + "1416530699231": 0.6666666666666666, + "1416530709232": 0.0, + "1416530719232": 0.33333333333333337, + "1416530729232": 0.4285714285714286, + "1416530739232": 0.25, + "1416530749232": 0.0, + "1416530759232": 0.16666666666666669, + "1416530769232": 0.25, + "1416530779232": 0.16666666666666669, + "1416530789232": 0.4285714285714286, + "1416530799232": 0.11111111111111113, + "1416530809232": 0.0, + "1416530819232": 0.28571428571428575, + "1416530829232": 0.375, + "1416530839231": 0.33333333333333337, + "1416530849232": 0.4285714285714286, + "1416530859232": 0.0, + "1416530869232": 0.33333333333333337, + "1416530879232": 0.33333333333333337, + "1416530889232": 0.125, + "1416530899232": 0.5, + "1416530909232": 0.14285714285714288, + "1416530919232": 0.4444444444444444, + "1416530929232": 0.0, + "1416530939232": 0.33333333333333337, + "1416530949232": 0.25000000000000006, + "1416530959232": 0.33333333333333337, + "1416530969232": 0.0, + "1416530979232": 0.375, + "1416530989232": 0.14285714285714288, + "1416530999232": 0.4285714285714286, + "1416531009232": 0.375, + "1416531019232": 0.33333333333333337, + "1416531029232": 0.28571428571428575, + "1416531039232": 0.22222222222222227, + "1416531049232": 0.5, + "1416531059232": 0.0, + "1416531069232": 0.5, + "1416531079232": 0.0, + "1416531089232": 1.0, + "1416531099232": 0.0, + "1416531109232": 0.0, + "1416531119232": 0.0, + "1416531129231": 0.0 + } + } +]} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/a52f8a55/ambari-server/src/test/resources/ams/single_host_metric.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/resources/ams/single_host_metric.json b/ambari-server/src/test/resources/ams/single_host_metric.json new file mode 100644 index 0000000..8e6c1e1 --- /dev/null +++ b/ambari-server/src/test/resources/ams/single_host_metric.json @@ -0,0 +1,121 @@ +{"metrics": [ + { + "timestamp": 1416445244801, + "metricname": "cpu_user", + "appid": "HOST", + "starttime": 1416445244801, + "metrics": { + "1416446384801": 4027.0550000000003, + "1416445244801": 4006.085, + "1416448711363": 4105.6875, + "1416446744801": 4032.82, + "1416446969801": 4036.255, + "1416445544801": 4011.4975000000004, + "1416446849801": 4034.4725, + "1416446024801": 4020.96, + "1416445979801": 4020.2975, + "1416448921363": 4109.2625, + "1416446144801": 4022.98, + "1416447569801": 4046.865, + "1416445394801": 4008.37, + "1416445319801": 4007.21, + "1416445484801": 4009.9525, + "1416446939801": 4035.7175, + "1416447419801": 4044.52, + "1416447464801": 4045.325, + "1416445634801": 4013.3424999999997, + "1416447299801": 4041.85, + "1416446459801": 4028.2799999999997, + "1416446804801": 4033.7475, + "1416446099801": 4022.2, + "1416447074801": 4038.2025, + "1416446699801": 4032.0175, + "1416446819801": 4033.9700000000003, + "1416446249801": 4024.925, + "1416445724801": 4015.73, + "1416446579801": 4030.1800000000003, + "1416445379801": 4008.0425000000005, + "1416447284801": 4041.51, + "1416446114801": 4022.3775, + "1416447179801": 4039.9025, + "1416448861363": 4107.545, + "1416448801363": 4106.74, + "1416446834801": 4034.1425, + "1416448741363": 4105.9574999999995, + "1416445259801": 4006.29, + "1416445499801": 4010.19, + "1416446474801": 4028.4275, + "1416448936363": 4109.4, + "1416445529801": 4011.3424999999997, + "1416447554801": 4046.55, + "1416446684801": 4031.7825, + "1416445424801": 4009.08, + "1416447584801": 4047.0550000000003, + "1416447434801": 4044.705, + "1416446084801": 4021.9725, + "1416446504801": 4028.98, + "1416446354801": 4026.5275, + "1416446339801": 4026.4125, + "1416445619801": 4012.9325, + "1416447059801": 4038.045, + "1416447089801": 4038.7, + "1416445304801": 4007.1025, + "1416445649801": 4013.9225, + "1416446204801": 4023.9425, + "1416445289801": 4006.9474999999998, + "1416447224801": 4040.59, + "1416446444801": 4028.0975, + "1416446984801": 4036.435, + "1416446609801": 4030.745, + "1416446729801": 4032.5525, + "1416446129801": 4022.7275, + "1416447644801": 4049.255, + "1416447164801": 4039.7375, + "1416446009801": 4020.825, + "1416448816363": 4106.9175, + "1416446219801": 4024.245, + "1416447539801": 4046.3975, + "1416445739801": 4015.8599999999997, + "1416446594801": 4030.365, + "1416445409801": 4008.9474999999998, + "1416447314801": 4042.6525, + "1416445679801": 4014.58, + "1416446924801": 4035.54, + "1416446624801": 4030.895, + "1416445994801": 4020.4624999999996, + "1416448846363": 4107.3525, + "1416445604801": 4012.57, + "1416446714801": 4032.2025, + "1416445514801": 4010.8725, + "1416445364801": 4007.8375, + "1416448681363": 4105.1125, + "1416447329801": 4043.1025, + "1416446234801": 4024.5275, + "1416447209801": 4040.42, + "1416448696363": 4105.3625, + "1416446954801": 4035.885, + "1416447404801": 4044.265, + "1416445559801": 4011.665, + "1416447044801": 4037.8475, + "1416447194801": 4040.08, + "1416445964801": 4020.1075, + "1416446324801": 4026.2075, + "1416446264801": 4025.03, + "1416448831363": 4107.2, + "1416446864801": 4034.635, + "1416448756363": 4106.07, + "1416446564801": 4030.005, + "1416445664801": 4014.1949999999997, + "1416447104801": 4038.855, + "1416448726363": 4105.842500000001, + "1416447344801": 4043.29, + "1416445274801": 4006.6475, + "1416448876363": 4107.65, + "1416445439801": 4009.185, + "1416446489801": 4028.8375, + "1416446369801": 4026.915, + "1416447524801": 4046.2525, + "1416447449801": 4045.09 + } + } +]} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/a52f8a55/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 9a41d03..fa2ca31 100644 --- a/pom.xml +++ b/pom.xml @@ -254,6 +254,11 @@ <!--Velocity log --> <exclude>**/velocity.log*</exclude> + + <!-- psutil : external lib, Apache 2.0 license included as a source file --> + <exclude>ambari-metrics/ambari-metrics-host-monitoring/src/main/python/psutil/**</exclude> + <exclude>ambari-metrics/ambari-metrics-timelineservice/src/test/resources/lib/org/apache/phoenix/phoenix-core-tests/4.2.0/phoenix-core-tests-4.2.0.pom</exclude> + <exclude>ambari-metrics/ambari-metrics-timelineservice/src/test/resources/lib/org/apache/phoenix/phoenix-core-tests/maven-metadata-local.xml</exclude> </excludes> </configuration> <executions>