beater

package
v0.0.0-...-1620ce9 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(i interface{}) interface{}

recursive function to deal with Yaml data

func Counter

func Counter(bt *Lustrebeat, t string, counter uint64)

func GetIBCounters

func GetIBCounters(path string, valuelist map[string]struct{}) (result map[string]uint64, err error)

func GetNetIOCs

func GetNetIOCs(valuelist map[string]struct{}) (result []net.IOCountersStat, err error)

func GetNumberVal

func GetNumberVal(s string) (v uint64, ok bool)

func GetStatsFile1

func GetStatsFile1(s string) (result map[string]interface{}, err error)

func GetValFiles

func GetValFiles(statsdir string, valuelist map[string]struct{}) (result map[string]uint64, err error)

func GetZfsPoolIofile

func GetZfsPoolIofile(s string) (result map[string]uint64, err error)

func GetZfsStatfile

func GetZfsStatfile(s string) (result map[string]uint64, err error)

func JobStat

func JobStat(bt *Lustrebeat, s string) (err error)

func List2Set

func List2Set(ss []string) (mm map[string]struct{})

func MakeLustreTagsE

func MakeLustreTagsE(s string) (fs string, object string, client string, ok bool)

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

Creates beater

func PublishZpool

func PublishZpool(bt *Lustrebeat, v string) (err error)

func PublishZstats

func PublishZstats(bt *Lustrebeat, s string, listzstats map[string]struct{}) (err error)

Types

type LustreStatsRecordLong

type LustreStatsRecordLong struct {
	Metric  string
	Samples uint64
	//Unit    string
	Min uint64
	Max uint64
	Sum uint64
}

type LustreStatsRecordShort

type LustreStatsRecordShort struct {
	Metric  string
	Samples uint64
}

type Lustrebeat

type Lustrebeat struct {
	// contains filtered or unexported fields
}

boilerplate

func (*Lustrebeat) Run

func (bt *Lustrebeat) Run(b *beat.Beat) error

boilerplate function

func (*Lustrebeat) Stop

func (bt *Lustrebeat) Stop()

Jump to

Keyboard shortcuts

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