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