예제 #1
0
// NewMonitorGroup makes a new MonitorGroup unattached to anything.
func NewMonitorGroup(name string) *MonitorGroup {
	return &MonitorGroup{
		group_name: SanitizeName(name),
		monitors:   utils.NewThreadsafeCache(),
		collectors: utils.NewThreadsafeCache(),
	}
}
예제 #2
0
// NewMonitorStore creates a new MonitorStore
func NewMonitorStore() *MonitorStore {
	return &MonitorStore{groups: utils.NewThreadsafeCache()}
}