func main() { flag.Parse() shared.LoadGroupsDesc() shared.ParseEnabledGroups(*enabledGroupsFlag) mongodbCollector := collector.NewMongodbCollector(collector.MongodbCollectorOpts{ URI: *mongodbUriFlag, }) prometheus.MustRegister(mongodbCollector) startWebServer() }
func TestMain(m *testing.M) { shared.LoadGroupsDesc() os.Exit(m.Run()) }