func (config *InfluxConfig) AddFlags(cmd *cobra.Command) {
	cmd.PersistentFlags().StringVar(&config.User, "influx-user", "root", "InfluxDB user")
	cmd.PersistentFlags().StringVar(&config.Password, "influx-password", "", "InfluxDB password")
	cmd.PersistentFlags().StringVar(&config.Host, "influx-host", "http://localhost:8086", "InfluxDB http server")
	cmd.PersistentFlags().StringVar(&config.DB, "influx-database", "monitoring", "InfluxDB database name")
}
func (config *InfluxConfig) AddFlags(cmd *cobra.Command) {
	cmd.PersistentFlags().StringVar(&config.User, "influx-user", "root", "InfluxDB user")
	cmd.PersistentFlags().StringVar(&config.Password, "influx-password", "", "InfluxDB password")
	cmd.PersistentFlags().StringVar(&config.Host, "influx-host", "http:
	cmd.PersistentFlags().StringVar(&config.DB, "influx-database", "monitoring", "InfluxDB database name")
}
func ( config * InfluxConfig ) AddFlags ( cmd * cobra . Command ) { cmd . PersistentFlags ( ) . StringVar ( & config . User , " " , " " , " " ) cmd . PersistentFlags ( ) . StringVar ( & config . Password , " " , " " , " " ) cmd . PersistentFlags ( ) . StringVar ( & config . Host , " " , " " , " " ) cmd . PersistentFlags ( ) . StringVar ( & config . DB , " " , " " , " " ) }
// AddFlags parses options for database configuration
AddFlags parses options for database configuration