<?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>topic Re: Supermetric for Number of Hosts in Cluster in Maint Mode in VMware Aria Operations  Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Operations/Supermetric-for-Number-of-Hosts-in-Cluster-in-Maint-Mode/m-p/2815396#M18211</link>
    <description>&lt;P&gt;...and this is the full chain/supermetric that ultimately does what I wanted.&lt;/P&gt;&lt;P&gt;ceil(({ This Resource: configuration|dasconfig|admissionControlPolicy|memoryFailoverResourcesPercent }/100)*({ This Resource: summary|total_number_hosts }-{ This Resource: Super Metrics|Number of Hosts in Cluster in MaintMode }))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure would be nice if vROps just HAD the metric that corresponds to the host failure to tolerate setting in vCenter's Cluster object.&amp;nbsp; &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@A5AF993F89FC883B1750F8915C03D452/emoticons/1f615.png" alt=":confused_face:" title=":confused_face:" /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 21:10:34 GMT</pubDate>
    <dc:creator>OsburnM</dc:creator>
    <dc:date>2020-12-07T21:10:34Z</dc:date>
    <item>
      <title>Supermetric for Number of Hosts in Cluster in Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Operations/Supermetric-for-Number-of-Hosts-in-Cluster-in-Maint-Mode/m-p/2815392#M18209</link>
      <description>&lt;P&gt;Greetings all-- looking for some advice on creating a supermetric for getting the number of hosts in a cluster that are in maintenance mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm &lt;EM&gt;really&lt;/EM&gt; trying to do is to create a supermetric that derives the number of "Host Failures Cluster Tolerates" that's set in vCenter's Cluster HA Admission Control setting.&amp;nbsp; Seems this isn't a metric or property vROps collects.&amp;nbsp; So what I'm trying to do is derive it based on the configuration|dasconfig|admissionsControlPolicy|memoryFailoverResourcesPercent&amp;nbsp; the vCenter feeds vrops and I'm doing that this way:&lt;/P&gt;&lt;P&gt;ceil(({&lt;SPAN&gt; &lt;SPAN class="sm-resourceEntry"&gt;This Resource&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class="sm-attrKeyPath"&gt;configuration|dasconfig|admissionControlPolicy|memoryFailoverResourcesPercent&lt;/SPAN&gt; &lt;/SPAN&gt;}/100)*{&lt;SPAN&gt; &lt;SPAN class="sm-resourceEntry"&gt;This Resource&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class="sm-attrKeyPath"&gt;summary|total_number_hosts&lt;/SPAN&gt; &lt;/SPAN&gt;})&lt;/P&gt;&lt;P&gt;But, what I'm realizing is vCenter dynamically changes that number when you put hosts into maint mode; and, rather than statically set that percentage (using the override option in vCenter), I'd rather dynamically just remove the number of hosts in maint mode from the equation.&amp;nbsp; Make sense?&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 20:32:32 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Operations/Supermetric-for-Number-of-Hosts-in-Cluster-in-Maint-Mode/m-p/2815392#M18209</guid>
      <dc:creator>OsburnM</dc:creator>
      <dc:date>2020-12-07T20:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Supermetric for Number of Hosts in Cluster in Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Operations/Supermetric-for-Number-of-Hosts-in-Cluster-in-Maint-Mode/m-p/2815394#M18210</link>
      <description>&lt;P&gt;Think I just figured it out...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;${this, metric=summary|total_number_hosts} - Count(${adaptertype=VMWARE, objecttype=Hostsystem, depth=1, metric=runtime|maintenanceState, where = "!contains inMaintenance"})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then apply the SM to ClusterComputeResource object type and the policy.&amp;nbsp; Seems to work.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 20:53:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Operations/Supermetric-for-Number-of-Hosts-in-Cluster-in-Maint-Mode/m-p/2815394#M18210</guid>
      <dc:creator>OsburnM</dc:creator>
      <dc:date>2020-12-07T20:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Supermetric for Number of Hosts in Cluster in Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Operations/Supermetric-for-Number-of-Hosts-in-Cluster-in-Maint-Mode/m-p/2815396#M18211</link>
      <description>&lt;P&gt;...and this is the full chain/supermetric that ultimately does what I wanted.&lt;/P&gt;&lt;P&gt;ceil(({ This Resource: configuration|dasconfig|admissionControlPolicy|memoryFailoverResourcesPercent }/100)*({ This Resource: summary|total_number_hosts }-{ This Resource: Super Metrics|Number of Hosts in Cluster in MaintMode }))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure would be nice if vROps just HAD the metric that corresponds to the host failure to tolerate setting in vCenter's Cluster object.&amp;nbsp; &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@A5AF993F89FC883B1750F8915C03D452/emoticons/1f615.png" alt=":confused_face:" title=":confused_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 21:10:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Operations/Supermetric-for-Number-of-Hosts-in-Cluster-in-Maint-Mode/m-p/2815396#M18211</guid>
      <dc:creator>OsburnM</dc:creator>
      <dc:date>2020-12-07T21:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Supermetric for Number of Hosts in Cluster in Maint Mode</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Operations/Supermetric-for-Number-of-Hosts-in-Cluster-in-Maint-Mode/m-p/2935711#M19226</link>
      <description>&lt;P&gt;This formula doesn't seem to account for hosts that are powered off.&amp;nbsp; Any ideas how I could adapt it to produce a count of only the powered on hosts that aren't in maintenance mode?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 00:52:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Operations/Supermetric-for-Number-of-Hosts-in-Cluster-in-Maint-Mode/m-p/2935711#M19226</guid>
      <dc:creator>mdaws011</dc:creator>
      <dc:date>2022-10-28T00:52:52Z</dc:date>
    </item>
  </channel>
</rss>

