Documentation ¶
Index ¶
- func ClusterFromID(client *govmomi.Client, id string) (*object.ClusterComputeResource, error)
- func ClusterFromRef(client *govmomi.Client, ref types.ManagedObjectReference) (*object.ClusterComputeResource, error)
- func GetClusters(ctx context.Context, c *govmomi.Client, lst *[]mo.ClusterComputeResource) error
- func GetMetricMap(ctx context.Context, client *govmomi.Client) (MetricMap map[string]int32)
- func GetVMLineage(ctx context.Context, client *govmomi.Client, host types.ManagedObjectReference) (mo.ManagedEntity, *object.ClusterComputeResource, mo.ManagedEntity, error)
- func NewClient(ctx context.Context) (*govmomi.Client, error)
- func PerfQuery(ctx context.Context, c *govmomi.Client, metrics []string, ...) map[string]int64
- type Collector
- type VMetric
- func ClusterMetrics(ch chan<- prometheus.Metric, objDC mo.Datacenter) []VMetric
- func DatacenterMetrics(ch chan<- prometheus.Metric) []VMetric
- func DatastoreMetrics(objDC mo.Datacenter) []VMetric
- func HostCounters() []VMetric
- func HostHBAStatus() []VMetric
- func HostMetrics() []VMetric
- func VirtualMachineMetrics() []VMetric
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterFromID ¶
ClusterFromID returns a ClusterComputeResource, a subclass of ComputeResource that is used for clusters.
func ClusterFromRef ¶
func ClusterFromRef(client *govmomi.Client, ref types.ManagedObjectReference) (*object.ClusterComputeResource, error)
ClusterFromRef TODO Comment
func GetClusters ¶
GetClusters TODO Comment
func GetMetricMap ¶
GetMetricMap TODO Comment
func GetVMLineage ¶
func GetVMLineage(ctx context.Context, client *govmomi.Client, host types.ManagedObjectReference) (mo.ManagedEntity, *object.ClusterComputeResource, mo.ManagedEntity, error)
GetVMLineage gets the parent and grandparent ManagedEntity objects
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector TODO Comment
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
Collect is called by the Prometheus registry when collecting metrics.
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of metrics collected by this Collector.
type VMetric ¶
type VMetric struct {
// contains filtered or unexported fields
}
VMetric TODO Comment
func ClusterMetrics ¶
func ClusterMetrics(ch chan<- prometheus.Metric, objDC mo.Datacenter) []VMetric
ClusterMetrics TODO Comment
func DatacenterMetrics ¶
func DatacenterMetrics(ch chan<- prometheus.Metric) []VMetric
DatacenterMetrics TODO Comment
func DatastoreMetrics ¶
func DatastoreMetrics(objDC mo.Datacenter) []VMetric
DatastoreMetrics TODO Comment
func HostCounters ¶ added in v0.3.0
func HostCounters() []VMetric
HostCounters Collects Hypervisor counters per Host
func HostHBAStatus ¶
func HostHBAStatus() []VMetric
HostHBAStatus Report status of the HBA attached to a hypervisor to be able to monitor if a hba goes offline
func VirtualMachineMetrics ¶ added in v0.3.0
func VirtualMachineMetrics() []VMetric
VirtualMachineMetrics TODO Comment