Example #1
0
func (s *Server) appendCollectdService(c collectd.Config) {
	if !c.Enabled {
		return
	}
	srv := collectd.NewService(c)
	srv.MetaStore = s.MetaStore
	srv.PointsWriter = s.PointsWriter
	s.Services = append(s.Services, srv)
}
Example #2
0
func (s *Server) appendCollectdService(c collectd.Config) {
	if !c.Enabled {
		return
	}
	l := s.LogService.NewStaticLevelLogger("[collectd] ", log.LstdFlags, wlog.INFO)
	srv := collectd.NewService(c)
	srv.SetLogger(l)
	srv.MetaStore = s.MetaStore
	srv.PointsWriter = s.TaskMaster
	s.Services = append(s.Services, srv)
}