forked from grafana/loki
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for tail to query frontend (grafana#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 flag
- Loading branch information
Showing
3 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.") | ||
} |