mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-28 23:19:41 -08:00
Merge pull request #15219 from jan--f/rw-default-http2-off
[CHANGE] Remote-write: default enable_http2 to false
This commit is contained in:
commit
07d01a9e0c
|
@ -3,6 +3,7 @@
|
||||||
## unreleased
|
## unreleased
|
||||||
|
|
||||||
* [CHANGE] Scraping: Remove implicit fallback to the Prometheus text format in case of invalid/missing Content-Type and fail the scrape instead. Add ability to specify a `fallback_scrape_protocol` in the scrape config. #15136
|
* [CHANGE] Scraping: Remove implicit fallback to the Prometheus text format in case of invalid/missing Content-Type and fail the scrape instead. Add ability to specify a `fallback_scrape_protocol` in the scrape config. #15136
|
||||||
|
* [CHANGE] Remote-write: default enable_http2 to false.
|
||||||
* [ENHANCEMENT] Scraping, rules: handle targets reappearing, or rules moving group, when out-of-order is enabled. #14710
|
* [ENHANCEMENT] Scraping, rules: handle targets reappearing, or rules moving group, when out-of-order is enabled. #14710
|
||||||
- [BUGFIX] PromQL: Fix stddev+stdvar aggregations to always ignore native histograms. #14941
|
- [BUGFIX] PromQL: Fix stddev+stdvar aggregations to always ignore native histograms. #14941
|
||||||
- [BUGFIX] PromQL: Fix stddev+stdvar aggregations to treat Infinity consistently. #14941
|
- [BUGFIX] PromQL: Fix stddev+stdvar aggregations to treat Infinity consistently. #14941
|
||||||
|
|
|
@ -181,13 +181,18 @@ var (
|
||||||
HTTPClientConfig: config.DefaultHTTPClientConfig,
|
HTTPClientConfig: config.DefaultHTTPClientConfig,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DefaultRemoteWriteHTTPClientConfig = config.HTTPClientConfig{
|
||||||
|
FollowRedirects: true,
|
||||||
|
EnableHTTP2: false,
|
||||||
|
}
|
||||||
|
|
||||||
// DefaultRemoteWriteConfig is the default remote write configuration.
|
// DefaultRemoteWriteConfig is the default remote write configuration.
|
||||||
DefaultRemoteWriteConfig = RemoteWriteConfig{
|
DefaultRemoteWriteConfig = RemoteWriteConfig{
|
||||||
RemoteTimeout: model.Duration(30 * time.Second),
|
RemoteTimeout: model.Duration(30 * time.Second),
|
||||||
ProtobufMessage: RemoteWriteProtoMsgV1,
|
ProtobufMessage: RemoteWriteProtoMsgV1,
|
||||||
QueueConfig: DefaultQueueConfig,
|
QueueConfig: DefaultQueueConfig,
|
||||||
MetadataConfig: DefaultMetadataConfig,
|
MetadataConfig: DefaultMetadataConfig,
|
||||||
HTTPClientConfig: config.DefaultHTTPClientConfig,
|
HTTPClientConfig: DefaultRemoteWriteHTTPClientConfig,
|
||||||
}
|
}
|
||||||
|
|
||||||
// DefaultQueueConfig is the default remote queue configuration.
|
// DefaultQueueConfig is the default remote queue configuration.
|
||||||
|
|
|
@ -142,7 +142,7 @@ var expectedConf = &Config{
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
FollowRedirects: true,
|
FollowRedirects: true,
|
||||||
EnableHTTP2: true,
|
EnableHTTP2: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -158,7 +158,7 @@ var expectedConf = &Config{
|
||||||
KeyFile: filepath.FromSlash("testdata/valid_key_file"),
|
KeyFile: filepath.FromSlash("testdata/valid_key_file"),
|
||||||
},
|
},
|
||||||
FollowRedirects: true,
|
FollowRedirects: true,
|
||||||
EnableHTTP2: true,
|
EnableHTTP2: false,
|
||||||
},
|
},
|
||||||
Headers: map[string]string{"name": "value"},
|
Headers: map[string]string{"name": "value"},
|
||||||
},
|
},
|
||||||
|
|
|
@ -2889,6 +2889,7 @@ metadata_config:
|
||||||
|
|
||||||
# HTTP client settings, including authentication methods (such as basic auth and
|
# HTTP client settings, including authentication methods (such as basic auth and
|
||||||
# authorization), proxy configurations, TLS options, custom HTTP headers, etc.
|
# authorization), proxy configurations, TLS options, custom HTTP headers, etc.
|
||||||
|
# enable_http2 defaults to false for remote-write.
|
||||||
[ <http_config> ]
|
[ <http_config> ]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue