func main() {
	flag.Parse()
	shared.LoadGroupsDesc()
	shared.ParseEnabledGroups(*enabledGroupsFlag)

	mongodbCollector := collector.NewMongodbCollector(collector.MongodbCollectorOpts{
		URI: *mongodbUriFlag,
	})
	prometheus.MustRegister(mongodbCollector)

	startWebServer()
}
func registerCollector() {
	mongodbCollector := collector.NewMongodbCollector(collector.MongodbCollectorOpts{
		URI:                    *mongodbURIFlag,
		TLSCertificateFile:     *mongodbTLSCert,
		TLSPrivateKeyFile:      *mongodbTLSPrivateKey,
		TLSCaFile:              *mongodbTLSCa,
		TLSHostnameValidation:  !(*mongodbTLSDisableHostnameValidation),
		CollectOplog:           *mongodbCollectOplog,
		CollectReplSet:         *mongodbCollectReplSet,
		CollectDatabaseMetrics: *mongodbCollectDatabaseMetrics,
	})
	prometheus.MustRegister(mongodbCollector)
}
func registerCollector() {
	mongodbCollector := collector.NewMongodbCollector(collector.MongodbCollectorOpts{
		URI: *mongodbURIFlag,
	})
	prometheus.MustRegister(mongodbCollector)
}