<?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: can't get critical alerts from a dashboard in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336807#M232388</link>
    <description>&lt;P&gt;Thank you! Looks like what I wanted.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 21:51:54 GMT</pubDate>
    <dc:creator>hamsterrrrr</dc:creator>
    <dc:date>2022-02-22T21:51:54Z</dc:date>
    <item>
      <title>can't get critical alerts from a dashboard</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336523#M232283</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;I'm using CM api v19&lt;BR /&gt;I'm trying to get only critical alerts which I'm looking at right now (RED ones).&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image001.png" style="width: 758px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33591i9EF7CD7799BAEDA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image001.png" alt="image001.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Tried &lt;A href="https://cloudera.github.io/cm_api/apidocs/v19/path__events.html" target="_blank" rel="noopener"&gt;https://cloudera.github.io/cm_api/apidocs/v19/path__events.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;/api/v19/events?query=category==HEALTH_EVENT;severity=CRITICAL&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The output consists of too many not relevant events. What should I do to get only critical events displayed on the dashboard?&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 16:47:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336523#M232283</guid>
      <dc:creator>hamsterrrrr</dc:creator>
      <dc:date>2022-02-17T16:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: can't get critical alerts from a dashboard</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336553#M232295</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95432"&gt;@hamsterrrrr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Those events represent the point-in-time occurrence when the alert was thrown. They don't tell you the current issues with the cluster, which is what you see in the UI.&lt;/P&gt;&lt;P&gt;I don't think the REST API has an endpoint that gives you that list directly, but it's pretty easy to find out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the results of the &lt;FONT face="courier new,courier"&gt;/clusters/{cluster}/services&lt;/FONT&gt; endpoint, look for services with the status = &lt;FONT face="courier new,courier"&gt;BAD&lt;/FONT&gt; or health checks with summary = &lt;FONT face="courier new,courier"&gt;BAD&lt;/FONT&gt;. For example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "items": [
    {
      "name": "impala",
      "type": "IMPALA",
      "healthSummary": "BAD",                 &amp;lt;&amp;lt;--- this
      "healthChecks": [
        ...
        {
          "name": "IMPALA_IMPALADS_HEALTHY",
          "summary": "BAD",                   &amp;lt;&amp;lt;--- or this
          "suppressed": false
        },
        ...
      ],
      ...
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 23:53:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336553#M232295</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-02-17T23:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: can't get critical alerts from a dashboard</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336569#M232305</link>
      <description>&lt;P&gt;Hello, André&lt;BR /&gt;Thanky you for yoir quick reply.&lt;BR /&gt;So you are saying that&amp;nbsp;by using api there is no way to find out what exactly is going on with claster? All we can get is just summary like GOOD\BAD of each service? And based on this we should conduct the further investigation by means of GUI?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:17:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336569#M232305</guid>
      <dc:creator>hamsterrrrr</dc:creator>
      <dc:date>2022-02-18T06:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: can't get critical alerts from a dashboard</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336581#M232308</link>
      <description>&lt;P&gt;I'm saying that because the command you are talking about says that overall state of the service HDFS is good, all components of it are GOOD, while in the GUI I still can see one red red Bad health Data DIrectory&amp;nbsp; Status bad health event, while overall status of HDFS is shown as GOOD(green).&lt;BR /&gt;Long story short, I just want to get this event via API call. Is that possible?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="overall service state is good, but there is a critical event" style="width: 417px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33599i1440C0F814B9A678/image-size/large?v=v2&amp;amp;px=999" role="button" title="image001(1).png" alt="overall service state is good, but there is a critical event" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;overall service state is good, but there is a critical event&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="this critical  event" style="width: 560px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33600i2F12714B3D8A04DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image002.png" alt="this critical  event" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;this critical  event&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;clusters/cluster/services/hdfs'|jq .

{

  "name": "hdfs",

  "type": "HDFS",

  "clusterRef": {

    "clusterName": "cluster"

  },

  "serviceUrl,

  "roleInstancesUrl":,

  "serviceState": "STARTED",

  "healthSummary": "GOOD",

  "healthChecks": [

    {

      "name": "HDFS_BLOCKS_WITH_CORRUPT_REPLICAS",

      "summary": "GOOD",

      "suppressed": false

    },

    {

      "name": "HDFS_CANARY_HEALTH",

      "summary": "GOOD",

      "suppressed": false

    },

    {

      "name": "HDFS_DATA_NODES_HEALTHY",

      "summary": "GOOD",

      "suppressed": false

    },

    {

      "name": "HDFS_FAILOVER_CONTROLLERS_HEALTHY",

      "summary": "GOOD",

      "suppressed": false

    },

    {

      "name": "HDFS_FREE_SPACE_REMAINING",

      "summary": "GOOD",

      "suppressed": false

    },

    {

      "name": "HDFS_HA_NAMENODE_HEALTH",

      "summary": "GOOD",

      "suppressed": false

    },

    {

      "name": "HDFS_MISSING_BLOCKS",

      "summary": "GOOD",

      "suppressed": false

    },

    {

      "name": "HDFS_UNDER_REPLICATED_BLOCKS",

      "summary": "GOOD",

      "suppressed": false

    }

  ],

  "configStalenessStatus": "FRESH",

  "clientConfigStalenessStatus": "FRESH",

  "maintenanceMode": false,

  "maintenanceOwners": [],

  "displayName": "HDFS",

  "entityStatus": "GOOD_HEALTH"

}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 08:34:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336581#M232308</guid>
      <dc:creator>hamsterrrrr</dc:creator>
      <dc:date>2022-02-18T08:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: can't get critical alerts from a dashboard</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336730#M232369</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95432"&gt;@hamsterrrrr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please check (and share) status for each one of the roles in the HDFS service?&lt;/P&gt;&lt;P data-unlink="true"&gt;The endpoint&amp;nbsp;&lt;FONT face="courier new,courier"&gt;/api/v40/clusters/cluster/services/hdfs/roles&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;should give you this data.&lt;/P&gt;&lt;P&gt;I'd like to understand what's the underlying issue in this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 00:42:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336730#M232369</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-02-22T00:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: can't get critical alerts from a dashboard</title>
      <link>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336807#M232388</link>
      <description>&lt;P&gt;Thank you! Looks like what I wanted.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 21:51:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/can-t-get-critical-alerts-from-a-dashboard/m-p/336807#M232388</guid>
      <dc:creator>hamsterrrrr</dc:creator>
      <dc:date>2022-02-22T21:51:54Z</dc:date>
    </item>
  </channel>
</rss>

