func New(clusterID, nodeID string, isMetricDisabled bool, adminMan *admin.Manager, syncMan *syncman.Manager, isProd bool) (*Module, error) {
	conn := api.New("spacecloud", "api.spaceuptech.com", true).DB("db")
	m := &Module{nodeID: nodeID, clusterID: clusterID, sink: conn, isMetricDisabled: isMetricDisabled, adminMan: adminMan, syncMan: syncMan, isProd: isProd}
	m.isMetricDisabled = true
	go m.routineFlushMetricsToSink()
	return m, nil
}
New creates a new instance of the metrics module
package metrics
import (
	"sync"
	api "github.com/spaceuptech/space-api-go"
	"github.com/spaceuptech/space-api-go/db"
	"github.com/spaceuptech/space-cloud/gateway/managers/admin"
	"github.com/spaceuptech/space-cloud/gateway/managers/syncman"
)
type Module struct {
	lock   sync.RWMutex
	isProd bool
	clusterID string
	nodeID    string
	projects  sync.Map  
	isMetricDisabled bool
	sink *db.DB
	adminMan *admin.Manager
	syncMan  *syncman.Manager
}
type Config struct {
	IsDisabled bool
}