Enabledbool`yaml:"enabled" doc:"description=Enable the dataobj querier."`
Fromstorageconfig.DayTime`yaml:"from" doc:"description=The date of the first day of when the dataobj querier should start querying from. In YYYY-MM-DD format, for example: 2018-04-15."`
Enabledbool`yaml:"enabled" doc:"description=Enable the dataobj querier."`
Fromstorageconfig.DayTime`yaml:"from" doc:"description=The date of the first day of when the dataobj querier should start querying from. In YYYY-MM-DD format, for example: 2018-04-15."`
ShardFactorint`yaml:"shard_factor" doc:"description=The number of shards to use for the dataobj querier."`
}
func(c*Config)RegisterFlags(f*flag.FlagSet){
f.BoolVar(&c.Enabled,"dataobj-querier-enabled",false,"Enable the dataobj querier.")
f.Var(&c.From,"dataobj-querier-from","The start time to query from.")
f.IntVar(&c.ShardFactor,"dataobj-querier-shard-factor",32,"The number of shards to use for the dataobj querier.")
// NewDetectedFieldsTripperware creates a new frontend tripperware responsible for handling detected field requests, which are basically log filter requests with a bit more processing.
f.StringVar(&cfg.fileName,"schema-config-file","","The path to the schema config file. The schema config is used only when running Cortex with the chunks storage.")