Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMonitor ¶
func AddMonitor(name string, init NewMonitor)
func CloseExporter ¶
func CloseExporter() error
Types ¶
type ExportedStat ¶
type Monitor ¶
type Monitor interface { GetName() string SetName(string) Monitor() error Validate() error ExportStats(string, interface{}) }
func GetMonitor ¶
type NewMonitor ¶
type NewMonitor func() Monitor
type Output ¶
type Output struct { Timestamp string `json:"Timestamp,omitempty"` Cfs []stats_manager.PipeMsg `json:"CloudfuseStats,omitempty"` FcEvent []*hmcommon.CacheEvent `json:"FileCache,omitempty"` Cpu string `json:"CPUUsage,omitempty"` Mem string `json:"MemoryUsage,omitempty"` Net string `json:"NetworkUsage,omitempty"` }
type StatsExporter ¶
type StatsExporter struct {
// contains filtered or unexported fields
}
func NewStatsExporter ¶
func NewStatsExporter() (*StatsExporter, error)
create single instance of StatsExporter
func (*StatsExporter) AddMonitorStats ¶
func (se *StatsExporter) AddMonitorStats(monName string, timestamp string, st interface{})
func (*StatsExporter) Destroy ¶
func (se *StatsExporter) Destroy()
func (*StatsExporter) StatsExporter ¶
func (se *StatsExporter) StatsExporter()
Click to show internal directories.
Click to hide internal directories.