<?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: ambari rest api for metrics in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228577#M74764</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is not Rest API call which can be used to capture the whole Metrics Monitors/Collectors Data in form of a file.&lt;/P&gt;&lt;P&gt;However you can query these data from the AMS collector Hbase database using utilities like sqlline as desceribed in &lt;/P&gt;&lt;P&gt;As mentioned on the other thread:  
&lt;A href="https://community.hortonworks.com/questions/172151/data-source-for-ambari-metrics-collector.html?childToView=173755#comment-173755" target="_blank"&gt;https://community.hortonworks.com/questions/172151/data-source-for-ambari-metrics-collector.html?childToView=173755#comment-173755&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2018 15:02:44 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-02-20T15:02:44Z</dc:date>
    <item>
      <title>ambari rest api for metrics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228576#M74763</link>
      <description>&lt;P&gt;Is there &lt;STRONG&gt; rest api&lt;/STRONG&gt; which can fetch all the details what metrics monitors collects or metrics collector does ?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 14:54:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228576#M74763</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-02-20T14:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: ambari rest api for metrics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228577#M74764</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is not Rest API call which can be used to capture the whole Metrics Monitors/Collectors Data in form of a file.&lt;/P&gt;&lt;P&gt;However you can query these data from the AMS collector Hbase database using utilities like sqlline as desceribed in &lt;/P&gt;&lt;P&gt;As mentioned on the other thread:  
&lt;A href="https://community.hortonworks.com/questions/172151/data-source-for-ambari-metrics-collector.html?childToView=173755#comment-173755" target="_blank"&gt;https://community.hortonworks.com/questions/172151/data-source-for-ambari-metrics-collector.html?childToView=173755#comment-173755&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 15:02:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228577#M74764</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-02-20T15:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: ambari rest api for metrics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228578#M74765</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay Kumar SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;is there some way I can get data what metrics monitor collect system-level metrics and publish to the &lt;STRONG&gt;Metrics Collector&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;other than using sqlline .&lt;/P&gt;&lt;P&gt;where does metrics monitor collects system level metrics ?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 15:10:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228578#M74765</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-02-20T15:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: ambari rest api for metrics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228579#M74766</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However one thing you can try:&lt;/P&gt;&lt;P&gt;You can make the following API call to query individual Host metrics for a specific time range.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;PRE&gt;# curl -v "http://amb25102.example.com:6188/ws/v1/timeline/metrics?metricNames=bytes_in._rate._avg&amp;amp;hostname=&amp;amp;appId=HOST&amp;amp;instanceId=&amp;amp;startTime=1451630974&amp;amp;endTime=1519110315"&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;However in this case you will need to keep changing the metrics name like "byte_in" .... &lt;/P&gt;&lt;P&gt;The time range you can take longer like "1451630974" means starting from 1 Jan 2016  , till "1519110315" means now.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt; However as mentioned earlier there is no Single API call that can be used to fetch all the AMS collector data.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 15:11:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228579#M74766</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-02-20T15:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: ambari rest api for metrics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228580#M74767</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;can you please brief about all metricsNames AMS has or location for the same where I can check  ?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 15:15:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228580#M74767</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-02-20T15:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: ambari rest api for metrics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228581#M74768</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322" target="_blank"&gt;@Anurag Mishra&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use Grafana to get the Host Level metrics which are sent by Ambari Metrics Monitor to Ambari Metrics Collector, By creating a custom dashboard.   (Still it will be in form of Graph and not a single file with whole data)&lt;/P&gt;&lt;P&gt;Like:&lt;STRONG&gt; In following case i created a New Dashboard with "HOST" metrics and the metrics name is "byte_in"  with Aggregator as "avg"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="63404-grafana-host-metrics.png" style="width: 3798px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15174i58327AF54F3F1F95/image-size/medium?v=v2&amp;amp;px=400" role="button" title="63404-grafana-host-metrics.png" alt="63404-grafana-host-metrics.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322" target="_blank"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 01:05:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228581#M74768</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-08-18T01:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: ambari rest api for metrics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228582#M74769</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Some of the metrics list you can find here that are exposed to the AMS collector:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For All kind of metrics:  &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/tree/release-2.6.1/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/files/service-metrics" target="_blank"&gt;https://github.com/apache/ambari/tree/release-2.6.1/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/files/service-metrics&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For particularly host specific metrics&lt;/STRONG&gt; names you can refer to: &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/release-2.6.1/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/files/service-metrics/HOST.txt" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.6.1/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/files/service-metrics/HOST.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 15:19:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228582#M74769</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-02-20T15:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: ambari rest api for metrics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228583#M74770</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;curl -v "http://amb25102.example.com:6188/ws/v1/timeline/metrics?metricNames=bytes_in._rate._avg&amp;amp;hostname=&amp;amp;appId=HOST&amp;amp;instanceId=&amp;amp;startTime=1451630974&amp;amp;endTime=1519110315"&lt;/P&gt;&lt;P&gt;This rest api not working for &lt;STRONG&gt;For All kind of metrics:.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have replaced &lt;/STRONG&gt;bytes_in._rate._avg to master.Server.numDeadRegionServers&lt;/P&gt;&lt;P&gt;curl -v "http://amb25102.example.com:6188/ws/v1/timeline/metrics?metricNames=master.Server.numDeadRegionServers&amp;amp;hostname=&amp;amp;appId=HOST&amp;amp;instanceId=&amp;amp;startTime=1451630974&amp;amp;endTime=1519110315"&lt;/P&gt;&lt;P&gt;but not able to get the  metrics results .&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 15:56:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-rest-api-for-metrics/m-p/228583#M74770</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-02-21T15:56:24Z</dc:date>
    </item>
  </channel>
</rss>

