<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to collect all hadoop metrics from the metrics collector API in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219630#M181518</link>
    <description>&lt;P&gt;ok, i accepted an answer already.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 03 Mar 2018 08:24:33 GMT</pubDate>
    <dc:creator>umarbiliyamin</dc:creator>
    <dc:date>2018-03-03T08:24:33Z</dc:date>
    <item>
      <title>How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219618#M181506</link>
      <description>&lt;P&gt;I will like to know if there is any way i can collect all the metrics from the metrics collector API using one request with the format below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://172.22.79.8/"&gt;h&lt;/A&gt;ttp://&amp;lt;AMS_HOST&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=&amp;lt;&amp;gt;&amp;amp;hostname=&amp;lt;&amp;gt;&amp;amp;appId=&amp;lt;&amp;gt;&amp;amp;startTime=&amp;lt;&amp;gt;&amp;amp;endTime=&amp;lt;&amp;gt;&amp;amp;precision=&amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 03:50:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219618#M181506</guid>
      <dc:creator>umarbiliyamin</dc:creator>
      <dc:date>2018-02-16T03:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219619#M181507</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44582/umarbiliyamin.html" nodeid="44582"&gt;@Biliyaminu Umar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;No there is &lt;STRONG&gt;no single call&lt;/STRONG&gt; to download (get) all the metrics (services/hosts) from AMS using API.  If you want to review the whole AMS data then you might need to review the AMS datastore (HBase).   You will have to query them separately. (multiple API calls)&lt;BR /&gt;&lt;BR /&gt;However you can get the list of total metrics that AMS collector is collecting using API metadata call as following:  (but this is just metadata about the metrics). Using a single call we can not retrieve all the metrics data at once.&lt;BR /&gt;&lt;BR /&gt;AMS Metadata API: (only metadata)&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://&amp;lt;ams-host&amp;gt;:6188/ws/v1/timeline/metrics/metadata" target="_blank"&gt;http://&amp;lt;ams-host&amp;gt;:6188/ws/v1/timeline/metrics/metadata&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 06:49:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219619#M181507</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-02-16T06:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219620#M181508</link>
      <description>&lt;P&gt;Hello @Jay Kumar SenSharma&lt;/P&gt;&lt;P&gt;Thanks for your feedback. Please how do i review the AMS datastore. Using this, can i get all the metrics per service?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 12:46:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219620#M181508</guid>
      <dc:creator>umarbiliyamin</dc:creator>
      <dc:date>2018-02-16T12:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219621#M181509</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44582/umarbiliyamin.html" nodeid="44582"&gt;@Biliyaminu Umar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;AMS stores the data to HBase tables. So if you can use "sqlline" utility to connect to the AMS HBase database then you should be able to query various HBase tables based on your requirement.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:  How to connect to AMS database.&lt;/STRONG&gt;
&lt;/P&gt;&lt;PRE&gt;# /usr/lib/ambari-metrics-collector/bin/sqlline.py amb25102.example.com:61181:/ams-hbase-unsecure
&lt;/PRE&gt;&lt;P&gt;Please replace "&lt;STRONG&gt;amb25102.example.com&lt;/STRONG&gt;" with your Ambari Metrics Collector Hostname and the  &lt;STRONG&gt;/ams-hbase-unsecure&lt;/STRONG&gt; (with the value that you have for your "zookeeper.znode.parent" mentioned in your Advanced ams-hbase-site)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Once you are able to connect to the DB then you can find the following tables.&lt;/P&gt;&lt;STRONG&gt;Following are the list of tables that you will see&lt;BR /&gt;&lt;/STRONG&gt;&lt;PRE&gt;0: jdbc:phoenix:amb25102.example.com:61181:/a&amp;gt; !tables
+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------------+-----------+
|                TABLE_CAT                 |               TABLE_SCHEM                |                TABLE_NAME                |                TABLE_TYPE                |           |
+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------------+-----------+
|                                          | SYSTEM                                   | CATALOG                                  | SYSTEM TABLE                             |           |
|                                          | SYSTEM                                   | FUNCTION                                 | SYSTEM TABLE                             |           |
|                                          | SYSTEM                                   | SEQUENCE                                 | SYSTEM TABLE                             |           |
|                                          | SYSTEM                                   | STATS                                    | SYSTEM TABLE                             |           |
|                                          |                                          | CONTAINER_METRICS                        | TABLE                                    |           |
|                                          |                                          | HOSTED_APPS_METADATA                     | TABLE                                    |           |
|                                          |                                          | INSTANCE_HOST_METADATA                   | TABLE                                    |           |
|                                          |                                          | METRICS_METADATA                         | TABLE                                    |           |
|                                          |                                          | METRIC_AGGREGATE                         | TABLE                                    |           |
|                                          |                                          | METRIC_AGGREGATE_DAILY                   | TABLE                                    |           |
|                                          |                                          | METRIC_AGGREGATE_HOURLY                  | TABLE                                    |           |
|                                          |                                          | METRIC_AGGREGATE_MINUTE                  | TABLE                                    |           |
|                                          |                                          | METRIC_RECORD                            | TABLE                                    |           |
|                                          |                                          | METRIC_RECORD_DAILY                      | TABLE                                    |           |
|                                          |                                          | METRIC_RECORD_HOURLY                     | TABLE                                    |           |
|                                          |                                          | METRIC_RECORD_MINUTE                     | TABLE                                    |           |
|                                          | ACTIVITY                                 | ACTIVITY_QUEUE                           | TABLE                                    |           |
|                                          | ACTIVITY                                 | CONFIG                                   | TABLE                                    |           |
|                                          | ACTIVITY                                 | COUNTER                                  | TABLE                                    |           |
|                                          | ACTIVITY                                 | FAILED_ACTIVITY                          | TABLE                                    |           |
|                                          | ACTIVITY                                 | HDFS_FILES                               | TABLE                                    |           |
|                                          | ACTIVITY                                 | HDFS_USER_FILE_SUMMARY                   | TABLE                                    |           |
|                                          | ACTIVITY                                 | JOB                                      | TABLE                                    |           |
|                                          | ACTIVITY                                 | RECOMMENDATION                           | TABLE                                    |           |
|                                          | ACTIVITY                                 | SCHEMA_INFO                              | TABLE                                    |           |
|                                          | ACTIVITY                                 | TASK                                     | TABLE                                    |           |
|                                          | ACTIVITY                                 | YARN_APPLICATION                         | TABLE                                    |           |
+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------------+-----------+
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You can query these tables:&lt;/P&gt;&lt;PRE&gt;0: jdbc:phoenix:amb25102.example.com:61181:/a&amp;gt; select * from SYSTEM.STATS;
0: jdbc:phoenix:amb25102.example.com:61181:/a&amp;gt; select count (*) from METRIC_AGGREGATE;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Please see:  &lt;A href="https://community.hortonworks.com/articles/71206/using-phoenix-sqlline-utility-to-browse-ambari-met.html" target="_blank"&gt;https://community.hortonworks.com/articles/71206/using-phoenix-sqlline-utility-to-browse-ambari-met.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;0: jdbc:phoenix:amb25102.example.com:61181:/a&amp;gt; select * from METRIC_AGGREGATE where METRIC_NAME='regionserver.Server.storeFileCount' order by SERVER_TIME limit 1;
+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------------+-----------+
|               METRIC_NAME                |                  APP_ID                  |               INSTANCE_ID                |               SERVER_TIME                |        UN |
+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------------+-----------+
| regionserver.Server.storeFileCount       | ams-hbase                                |                                          | 1518498780000                            |           |
+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------------+-----------+
1 row selected (0.714 seconds)&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 13:18:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219621#M181509</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-02-16T13:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219622#M181510</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Oh nice thats very good. Thanks&lt;/P&gt;&lt;P&gt;I have also tried to use the wildcard (%) such that it can return all metrics per service but i always end up with an empty json response. Is it wrong to call for metrics as below;&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://&amp;lt;ams-host&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=regionServer.%" target="_blank"&gt;http://&amp;lt;ams-host&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=regionServer.%&lt;/A&gt;

&lt;/PRE&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 18:09:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219622#M181510</guid>
      <dc:creator>umarbiliyamin</dc:creator>
      <dc:date>2018-02-16T18:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219623#M181511</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44582/umarbiliyamin.html" nodeid="44582"&gt;@Biliyaminu Umar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please also specify the startTime / endTime / appId ..etc as well like following:&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://&amp;lt;AMS_HOST&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=regionserver.Server.%&amp;amp;appId=hbase&amp;amp;startTime=14000000&amp;amp;endTime=14200000" target="_blank"&gt;http://&amp;lt;AMS_HOST&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=regionserver.Server.%&amp;amp;appId=hbase&amp;amp;startTime=14000000&amp;amp;endTime=14200000&lt;/A&gt;

&lt;A href="http://&amp;lt;AMS_HOST&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=regionserver.Server.%&amp;amp;hostname=abc.testdomain124.devlocal&amp;amp;appId=hbase&amp;amp;startTime=14000000&amp;amp;endTime=14200000" target="_blank"&gt;http://&amp;lt;AMS_HOST&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=regionserver.Server.%&amp;amp;hostname=abc.testdomain124.devlocal&amp;amp;appId=hbase&amp;amp;startTime=14000000&amp;amp;endTime=14200000&lt;/A&gt;

&lt;A href="http://&amp;lt;AMS_HOST&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=master.AssignmentManger.ritCount,regionserver.Server.%&amp;amp;hostname=abc.testdomain124.devlocal&amp;amp;appId=hbase&amp;amp;startTime=14000000&amp;amp;endTime=14200000" target="_blank"&gt;http://&amp;lt;AMS_HOST&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=master.AssignmentManger.ritCount,regionserver.Server.%&amp;amp;hostname=abc.testdomain124.devlocal&amp;amp;appId=hbase&amp;amp;startTime=14000000&amp;amp;endTime=14200000&lt;/A&gt;

&lt;A href="http://&amp;lt;AMS_HOST&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=regionserver.Server.%&amp;amp;hostname=abc.testdomain12%.devlocal&amp;amp;appId=hbase&amp;amp;startTime=14000000&amp;amp;endTime=14200000" target="_blank"&gt;http://&amp;lt;AMS_HOST&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=regionserver.Server.%&amp;amp;hostname=abc.testdomain12%.devlocal&amp;amp;appId=hbase&amp;amp;startTime=14000000&amp;amp;endTime=14200000&lt;/A&gt;

&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Metrics+Collector+API+Specification" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Metrics+Collector+API+Specification&lt;/A&gt;        (Section : "&lt;U&gt;&lt;STRONG&gt;Specifying Wild Cards"&lt;/STRONG&gt;)&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 18:20:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219623#M181511</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-02-16T18:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219624#M181512</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;, Thanks for your continous help, it has been insightful. Anyways, i have noticed some behaviour while collecting metrics from the API. If for example i make an API call like so,&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://*********/ws/v1/timeline/metrics?metricNames=dfs.FSNamesystem.BlockCapacity,dfs.FsVolume.FlushIoRateNumOps,jvm.file_descriptor_usage,Topologies,jvm.JvmMetrics.ThreadsTimedWaiting,jvm.threads.runnable.count,jvm.JvmMetrics.GcCount" target="_blank"&gt;http://*********/ws/v1/timeline/metrics?metricNames=dfs.FSNamesystem.BlockCapacity,dfs.FsVolume.FlushIoRateNumOps,jvm.file_descriptor_usage,Topologies,jvm.JvmMetrics.ThreadsTimedWaiting,jvm.threads.runnable.count,jvm.JvmMetrics.GcCount&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;i get a response which is sorted in a strange manner like this below. Is there a special way API sorts the metrics in the response or is it just a random arrangement. Thanks&lt;/P&gt;&lt;PRE&gt;{
"metrics": [{
"timestamp": 1520030910000,
"metadata": {},
"metricname": "jvm.JvmMetrics.ThreadsTimedWaiting",
"appid": "applicationhistoryserver",
"starttime": 1520030910000,
"metrics": {
"1520030910000": 29.0
}
}, {
"timestamp": 1520030910000,
"metadata": {},
"metricname": "Topologies",
"appid": "nimbus",
"starttime": 1520030910000,
"metrics": {
"1520030910000": 0.0
}
}, {
"timestamp": 1520030910000,
"metadata": {},
"metricname": "dfs.FSNamesystem.BlockCapacity",
"appid": "n



amenode",
"starttime": 1520030910000,
"metrics": {
"1520030910000": 2097152.0
}
}, {
"timestamp": 1520030910000,
"metadata": {},
"metricname": "dfs.FsVolume.FlushIoRateNumOps",
"appid": "datanode",
"starttime": 1520030910000,
"metrics": {
"1520030910000": 0.0
}
}, {
"timestamp": 1520030910000,
"metadata": {},
"metricname": "jvm.file_descriptor_usage",
"appid": "nifi",
"starttime": 1520030910000,
"metrics": {
"1520030910000": 0.04996
}
}, {
"timestamp": 1520030910000,
"metadata": {},
"metricname": "jvm.threads.runnable.count",
"appid": "ambari_server",
"starttime": 1520030910000,
"metrics": {
"1520030910000": 10.0
}
}
]
}&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Mar 2018 07:21:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219624#M181512</guid>
      <dc:creator>umarbiliyamin</dc:creator>
      <dc:date>2018-03-03T07:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219625#M181513</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44582/umarbiliyamin.html" nodeid="44582"&gt;@Biliyaminu Umar&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As there are multiple metricsNames there is no common way to sort them out in meaningful/useful form so they are random.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44582/umarbiliyamin.html" nodeid="44582"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 07:42:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219625#M181513</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-03T07:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219626#M181514</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;P&gt;Okay thank you very much. I will to find a way of sorting them then.&lt;/P&gt;&lt;P&gt;I appreciate&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 07:47:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219626#M181514</guid>
      <dc:creator>umarbiliyamin</dc:creator>
      <dc:date>2018-03-03T07:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219627#M181515</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44582/umarbiliyamin.html" nodeid="44582"&gt;@Biliyaminu Umar&lt;/A&gt; &lt;/P&gt;&lt;P&gt;But if you will have a defined the &lt;STRONG&gt;startTime&lt;/STRONG&gt; and &lt;STRONG&gt;endTime&lt;/STRONG&gt; for the metrics that you wanted to retrieve then the output should be in the EPOCH time sorted order something like following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Example:
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://*********//ws/v1/timeline/metrics?metricNames=jvm.JvmMetrics.GcCount._max&amp;amp;hostname=&amp;amp;appId=jobhistoryserver&amp;amp;instanceId=&amp;amp;startTime=1520020359&amp;amp;endTime=1520029247" target="_blank"&gt;http://*********//ws/v1/timeline/metrics?metricNames=jvm.JvmMetrics.GcCount._max&amp;amp;hostname=&amp;amp;appId=jobhistoryserver&amp;amp;instanceId=&amp;amp;startTime=1520020359&amp;amp;endTime=1520029247&lt;/A&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Then the output will be sorted by time (Epoch time) as following:&lt;/P&gt;&lt;PRE&gt;{
  "metrics": [
    {
      "timestamp": 1520020500000,
      "metadata": {
        
      },
      "metricname": "jvm.JvmMetrics.GcCount._max",
      "appid": "jobhistoryserver",
      "starttime": 1520020500000,
      "metrics": {
        "1520020500000": 28,
        "1520020800000": 28,
        "1520021100000": 29,
        "1520021400000": 29,
        "1520021700000": 29,
        "1520022000000": 29,
        "1520022300000": 29,
        "1520022600000": 29,
        "1520022900000": 29,
        "1520023200000": 30,
        "1520023500000": 30,
        "1520023800000": 30,
        "1520024100000": 30,
        "1520024400000": 30,
        "1520024700000": 30,
        "1520025000000": 30,
        "1520025300000": 31,
        "1520025600000": 31,
        "1520025900000": 31,
        "1520026200000": 31,
        "1520026500000": 31,
        "1520026800000": 31,
        "1520027100000": 31,
        "1520027400000": 32,
        "1520027700000": 32,
        "1520028000000": 32,
        "1520028300000": 32,
        "1520028600000": 32,
        "1520028900000": 32,
        "1520029200000": 32.333333333333336
      }
    }
  ]
}&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 07:50:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219627#M181515</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-03T07:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219628#M181516</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44582/umarbiliyamin.html" nodeid="44582"&gt;@Biliyaminu Umar&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like the query asked originally as part of this thread is already answered hence it will be great if you can mark this thread as "Answered" by clicking "Accept" button on the correct answer. That way other HCC users can quickly browse the answered solutions.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44582/umarbiliyamin.html" nodeid="44582"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 07:52:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219628#M181516</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-03T07:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219629#M181517</link>
      <description>&lt;P&gt;Its ok. I am looking at a situation where i collect multiple metrics multiple metrics and extract them for storage in a database.&lt;/P&gt;&lt;P&gt;Thanks anyways&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 07:54:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219629#M181517</guid>
      <dc:creator>umarbiliyamin</dc:creator>
      <dc:date>2018-03-03T07:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to collect all hadoop metrics from the metrics collector API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219630#M181518</link>
      <description>&lt;P&gt;ok, i accepted an answer already.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 08:24:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-collect-all-hadoop-metrics-from-the-metrics-collector/m-p/219630#M181518</guid>
      <dc:creator>umarbiliyamin</dc:creator>
      <dc:date>2018-03-03T08:24:33Z</dc:date>
    </item>
  </channel>
</rss>

