atc0005 / check-vmware

Go-based tooling to monitor VMware environments; NOT affiliated with or endorsed by VMware, Inc.
MIT License
17 stars 3 forks source link

Add "origin" or "parent" annotation for `Resources` resource pool when multiple pools of the same name are present #1148

Open atc0005 opened 3 months ago

atc0005 commented 3 months ago

Overview

I noticed in the output for today's "snapshots report" (daily renotify frequency for the service check when in a persistent non-OK state) that out of the resource pools evaluated that there are 3 instances of Resources.

One is for the cluster associated with the vCenter instance that we're polling for snapshots.

The next two are for what appear at first glance to be standalone hosts for remote hosted ESXi instances. From what I understand they're Azure hosted instances associated with VMware Hybrid Cloud Extensions(HCX). Each instance has an associated datastore (ma-ds-* where * is a 36 character alphanumeric string with dashes) and a Resources pool.

It could be useful to include the parent "host" that the pool is associated with or the cluster name for the Resources pool associated with the cluster.

References