<?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: Collect HBASE metrics in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Collect-HBASE-metrics/m-p/186958#M75934</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;You are using incorrect "appid" in your rest call.&lt;/P&gt;&lt;P&gt;For HBase metrics it should be  &lt;STRONG&gt;"appId=hbase"&lt;/STRONG&gt; instead of &lt;STRONG&gt;"appId=ams-hbase" (this is for AMS HBase)&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://&amp;lt;server&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=master.Server.numDeadRegionServers._max&amp;amp;hostname=&amp;amp;appId=hbase&amp;amp;instanceId=&amp;amp;startTime=1521127341&amp;amp;endTime=1521148941" target="_blank"&gt;http://&amp;lt;server&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=master.Server.numDeadRegionServers._max&amp;amp;hostname=&amp;amp;appId=hbase&amp;amp;instanceId=&amp;amp;startTime=1521127341&amp;amp;endTime=1521148941&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2018 04:25:55 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-03-16T04:25:55Z</dc:date>
    <item>
      <title>Collect HBASE metrics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Collect-HBASE-metrics/m-p/186957#M75933</link>
      <description>&lt;P&gt;Hello, i am trying to collect some metrics related to hbase but i keep getting metrics related to ams-hbase. i sent the following request:&lt;/P&gt;&lt;P&gt; &lt;A href="http://&amp;lt;server&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=master.Server.numDeadRegionServers&amp;amp;appid=hbase" target="_blank"&gt;http://&amp;lt;server&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=master.Server.numDeadRegionServers&amp;amp;appid=hbase&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and got the following response related to ams hbase:&lt;/P&gt;&lt;P&gt;{
"metrics": [{
"timestamp": 1521145230000,
"metadata": {},
"metricname": "master.Server.numDeadRegionServers",
"appid": "ams-hbase",
"starttime": 1521145230000,
"metrics": {
"1521145230000": 0.0
}
}
]
}&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In the real sense, 2 region servers are down. how do i collect the intended metrics.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:58:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Collect-HBASE-metrics/m-p/186957#M75933</guid>
      <dc:creator>umarbiliyamin</dc:creator>
      <dc:date>2022-09-16T12:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Collect HBASE metrics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Collect-HBASE-metrics/m-p/186958#M75934</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;You are using incorrect "appid" in your rest call.&lt;/P&gt;&lt;P&gt;For HBase metrics it should be  &lt;STRONG&gt;"appId=hbase"&lt;/STRONG&gt; instead of &lt;STRONG&gt;"appId=ams-hbase" (this is for AMS HBase)&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://&amp;lt;server&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=master.Server.numDeadRegionServers._max&amp;amp;hostname=&amp;amp;appId=hbase&amp;amp;instanceId=&amp;amp;startTime=1521127341&amp;amp;endTime=1521148941" target="_blank"&gt;http://&amp;lt;server&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=master.Server.numDeadRegionServers._max&amp;amp;hostname=&amp;amp;appId=hbase&amp;amp;instanceId=&amp;amp;startTime=1521127341&amp;amp;endTime=1521148941&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 04:25:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Collect-HBASE-metrics/m-p/186958#M75934</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-16T04:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Collect HBASE metrics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Collect-HBASE-metrics/m-p/186959#M75935</link>
      <description>&lt;P&gt;@Jay Kumar SenSharma&lt;/P&gt;&lt;P&gt;Thanks for your response. It resolves the issue. I realised that once i specify the appId, i can not collect multiple metrics with one call. Is there any workaround wheeeby i can specify appId for some metrics and not others in same call. These metrics are all using same appId (hbase). If i dont specify appId, the call returns the metrics for ams-hbase.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 15:12:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Collect-HBASE-metrics/m-p/186959#M75935</guid>
      <dc:creator>umarbiliyamin</dc:creator>
      <dc:date>2018-03-16T15:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Collect HBASE metrics</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Collect-HBASE-metrics/m-p/186960#M75936</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;As per AMS specification the "appId" and "metricsNames" are the mandatory attributes. &lt;/P&gt;&lt;P&gt;In case of metrics names in some places we can use Wild Cards like following:&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://&amp;lt;server&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=regionserver.Server.%&amp;amp;appId=hbase&amp;amp;startTime=1521167109&amp;amp;endTime=1521188709" target="_blank"&gt;http://&amp;lt;server&amp;gt;:6188/ws/v1/timeline/metrics?metricNames=regionserver.Server.%&amp;amp;appId=hbase&amp;amp;startTime=1521167109&amp;amp;endTime=1521188709&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;In the above case it will show all the &lt;STRONG&gt;"regionServer.Server.%"&lt;/STRONG&gt; metrics.&lt;/P&gt;&lt;P&gt;More details about wild card can be found here:  &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;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 15:35:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Collect-HBASE-metrics/m-p/186960#M75936</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-16T15:35:25Z</dc:date>
    </item>
  </channel>
</rss>

