mirror of https://github.com/grafana/loki
Added support for tail to query frontend (#2032)
* Added support for tail to query frontend * cleanup WsTailProxy * used httputil.NewSingleHostReverseProxy insted of custom implementation, added tailproxy config * proxy all unknown requests * rename proxy to tailProxy * default handler, if tailproxy url is set up default proxy is tailproxy * embedded lokifrontend conf which adds tail_proxy_url * fixed tail_proxy_url flagpull/2420/head
parent
4e2b37b2f8
commit
2e1fd42540
@ -0,0 +1,17 @@ |
||||
package lokifrontend |
||||
|
||||
import ( |
||||
"flag" |
||||
"github.com/cortexproject/cortex/pkg/querier/frontend" |
||||
) |
||||
|
||||
type Config struct { |
||||
frontend.Config `yaml:",inline"` |
||||
TailProxyUrl string `yaml:"tail_proxy_url"` |
||||
} |
||||
|
||||
// RegisterFlags adds the flags required to config this to the given FlagSet.
|
||||
func (cfg *Config) RegisterFlags(f *flag.FlagSet) { |
||||
cfg.Config.RegisterFlags(f) |
||||
f.StringVar(&cfg.TailProxyUrl, "frontend.tail-proxy-url", "", "URL of querier for tail proxy.") |
||||
} |
Loading…
Reference in new issue