mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
cleanup: remove hardcoded fake url for testing
This commit is contained in:
parent
44f166d066
commit
06b486b41e
|
@ -155,12 +155,7 @@ func (rws *WriteStorage) ApplyConfig(conf *config.Config) error {
|
||||||
name = rwConf.Name
|
name = rwConf.Name
|
||||||
}
|
}
|
||||||
|
|
||||||
var c WriteClient
|
c, err := NewWriteClient(name, &ClientConfig{
|
||||||
if rwConf.URL.String() == "fake" {
|
|
||||||
// f := "fake" + strconv.Itoa(rand.Intn(100))
|
|
||||||
// c = NewTestClient(f, f)
|
|
||||||
} else {
|
|
||||||
c, err = NewWriteClient(name, &ClientConfig{
|
|
||||||
URL: rwConf.URL,
|
URL: rwConf.URL,
|
||||||
Timeout: rwConf.RemoteTimeout,
|
Timeout: rwConf.RemoteTimeout,
|
||||||
HTTPClientConfig: rwConf.HTTPClientConfig,
|
HTTPClientConfig: rwConf.HTTPClientConfig,
|
||||||
|
@ -169,10 +164,10 @@ func (rws *WriteStorage) ApplyConfig(conf *config.Config) error {
|
||||||
Headers: rwConf.Headers,
|
Headers: rwConf.Headers,
|
||||||
RetryOnRateLimit: rwConf.QueueConfig.RetryOnRateLimit,
|
RetryOnRateLimit: rwConf.QueueConfig.RetryOnRateLimit,
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
queue, ok := rws.queues[hash]
|
queue, ok := rws.queues[hash]
|
||||||
if externalLabelUnchanged && ok {
|
if externalLabelUnchanged && ok {
|
||||||
|
|
Loading…
Reference in a new issue