We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func (i *Injector) injectJobs(cfg *config.Config) error { for _, job := range cfg.ScrapeConfigs { if i.option.ProxyURL != "" { u, err := url.Parse(i.option.ProxyURL) if err != nil { return err } job.HTTPClientConfig.ProxyURL = config_util.URL{ URL: u, } } job.ServiceDiscoveryConfigs = []discovery.Config{ discovery.StaticConfig(target2targetGroup(job.JobName, i.curTargets[job.JobName])), } job.Scheme = "http" job.HTTPClientConfig.BearerToken = "" job.HTTPClientConfig.BasicAuth = nil job.HTTPClientConfig.TLSConfig = config_util.TLSConfig{} // fix invalid label job.RelabelConfigs = []*relabel.Config{ { Separator: ";", Regex: relabel.MustNewRegexp(target.PrefixForInvalidLabelName + "(.+)"), Replacement: "$1", Action: relabel.LabelMap, }, } } return nil }
injectJobs 函数直接硬编码了请求方式,去掉了auth(#9),猜测是因为sidecar需要代理prometheus的scrape请求,是否有办法将auth加回?
injectJobs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
injectJobs
函数直接硬编码了请求方式,去掉了auth(#9),猜测是因为sidecar需要代理prometheus的scrape请求,是否有办法将auth加回?The text was updated successfully, but these errors were encountered: