Exemplo n.º 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(),
	}
}
Exemplo n.º 2
0
// NewMonitorStore creates a new MonitorStore
func NewMonitorStore() *MonitorStore {
	return &MonitorStore{groups: utils.NewThreadsafeCache()}
}