datagetter

package
v0.0.0-...-818b058 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// MemoryUsageComputeNode is a predefined ganglia dataset of memory usage on the compute nodes.
	MemoryUsageComputeNode gangliaDataset = iota
	// DiskUsageComputeNode is a predefined ganglia dataset of disk usage on the compute nodes.
	DiskUsageComputeNode
	// InfoComputeNode is a predefined ganglia dataset of resource usage, system load on the compute nodes.
	InfoComputeNode
	// MemoryUsageAccessNode is a predefined ganglia dataset of memory usage on the access nodes.
	MemoryUsageAccessNode
	// DiskUsageAccessNode is a predefined ganglia dataset of disk usage on the access nodes.
	DiskUsageAccessNode
	// InfoAccessNode is a predefined ganglia dataset of resource usage, system load on the access nodes.
	InfoAccessNode
)

Variables

This section is empty.

Functions

func GetAccessNodes

func GetAccessNodes() ([]string, error)

GetAccessNodes return the hostname of torque cluster's access nodes.

func GetComputeNodes

func GetComputeNodes() ([]string, error)

GetComputeNodes return the hostname of torque cluster's compute nodes.

Types

type GangliaDataGetter

type GangliaDataGetter struct {
	Dataset gangliaDataset
	// contains filtered or unexported fields
}

GangliaDataGetter provides interfaces to retrieve data from the Ganglia website, parse it and return relevant data objects.

func (*GangliaDataGetter) Get

func (g *GangliaDataGetter) Get() error

Get retrieves raw data from a ganglia service endpoint, parses the raw data, and turns it into a slice of the gangliaResource data objects.

func (*GangliaDataGetter) GetPrint

func (g *GangliaDataGetter) GetPrint() error

GetPrint retrieves ganglia resource data and print the data to the stdout in a tabular format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL