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 ¶
GetAccessNodes return the hostname of torque cluster's access nodes.
func GetComputeNodes ¶
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.
Click to show internal directories.
Click to hide internal directories.