func (app *App) ParseConfig() error {
	app.Lock()
	defer app.Unlock()

	err := app.configure()

	if app.PromRegisterer == nil {
		app.PromRegisterer = prometheus.WrapRegistererWith(
			prometheus.Labels(app.Config.Prometheus.Labels),
			app.PromRegistry,
		)
	}

	return err
}
func (app *App) ParseConfig() error {
	app.Lock()
	defer app.Unlock()

	err := app.configure()

	if app.PromRegisterer == nil {
		app.PromRegisterer = prometheus.WrapRegistererWith(
			prometheus.Labels(app.Config.Prometheus.Labels),
			app.PromRegistry,
		)
	}

	return err
}
func ( app * App ) ParseConfig ( ) error { app . Lock ( ) defer app . Unlock ( ) err := app . configure ( ) if app . PromRegisterer == nil { app . PromRegisterer = prometheus . WrapRegistererWith ( prometheus . Labels ( app . Config . Prometheus . Labels ) , app . PromRegistry , ) } return err }
// ParseConfig loads config from config file, schemas.conf, aggregation.conf
ParseConfig loads config from config file schemas . conf aggregation . conf