Skip to content

Commit

Permalink
Rename to http.config
Browse files Browse the repository at this point in the history
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
  • Loading branch information
saswatamcode committed May 14, 2021
1 parent ffa2c74 commit 5edfbe2
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion cmd/thanos/config.go
Expand Up @@ -56,7 +56,7 @@ func (hc *httpConfig) registerFlag(cmd extkingpin.FlagClause) *httpConfig {
"Time to wait after an interrupt received for HTTP Server.").
Default("2m").SetValue(&hc.gracePeriod)
cmd.Flag(
"http-tls-config",
"http.config",
"[EXPERIMENTAL] Path to the configuration file that can enable TLS or authentication for all HTTP endpoints.",
).Default("").StringVar(&hc.tlsConfig)
return hc
Expand Down
2 changes: 1 addition & 1 deletion docs/components/compact.md
Expand Up @@ -377,7 +377,7 @@ Flags:
Listen host:port for HTTP endpoints.
--http-grace-period=2m Time to wait after an interrupt received for
HTTP Server.
--http-tls-config="" [EXPERIMENTAL] Path to the configuration file
--http.config="" [EXPERIMENTAL] Path to the configuration file
that can enable TLS or authentication for all
HTTP endpoints.
--log.format=logfmt Log format to use. Possible options: logfmt or
Expand Down
2 changes: 1 addition & 1 deletion docs/components/query-frontend.md
Expand Up @@ -136,7 +136,7 @@ Flags:
Listen host:port for HTTP endpoints.
--http-grace-period=2m Time to wait after an interrupt received for
HTTP Server.
--http-tls-config="" [EXPERIMENTAL] Path to the configuration file
--http.config="" [EXPERIMENTAL] Path to the configuration file
that can enable TLS or authentication for all
HTTP endpoints.
--labels.default-time-range=24h
Expand Down
2 changes: 1 addition & 1 deletion docs/components/query.md
Expand Up @@ -323,7 +323,7 @@ Flags:
Listen host:port for HTTP endpoints.
--http-grace-period=2m Time to wait after an interrupt received for
HTTP Server.
--http-tls-config="" [EXPERIMENTAL] Path to the configuration file
--http.config="" [EXPERIMENTAL] Path to the configuration file
that can enable TLS or authentication for all
HTTP endpoints.
--log.format=logfmt Log format to use. Possible options: logfmt or
Expand Down
2 changes: 1 addition & 1 deletion docs/components/receive.md
Expand Up @@ -101,7 +101,7 @@ Flags:
Listen host:port for HTTP endpoints.
--http-grace-period=2m Time to wait after an interrupt received for
HTTP Server.
--http-tls-config="" [EXPERIMENTAL] Path to the configuration file
--http.config="" [EXPERIMENTAL] Path to the configuration file
that can enable TLS or authentication for all
HTTP endpoints.
--label=key="value" ... External labels to announce. This flag will be
Expand Down
2 changes: 1 addition & 1 deletion docs/components/rule.md
Expand Up @@ -311,7 +311,7 @@ Flags:
Listen host:port for HTTP endpoints.
--http-grace-period=2m Time to wait after an interrupt received for
HTTP Server.
--http-tls-config="" [EXPERIMENTAL] Path to the configuration file
--http.config="" [EXPERIMENTAL] Path to the configuration file
that can enable TLS or authentication for all
HTTP endpoints.
--label=<name>="<value>" ...
Expand Down
2 changes: 1 addition & 1 deletion docs/components/sidecar.md
Expand Up @@ -108,7 +108,7 @@ Flags:
Listen host:port for HTTP endpoints.
--http-grace-period=2m Time to wait after an interrupt received for
HTTP Server.
--http-tls-config="" [EXPERIMENTAL] Path to the configuration file
--http.config="" [EXPERIMENTAL] Path to the configuration file
that can enable TLS or authentication for all
HTTP endpoints.
--log.format=logfmt Log format to use. Possible options: logfmt or
Expand Down
2 changes: 1 addition & 1 deletion docs/components/store.md
Expand Up @@ -75,7 +75,7 @@ Flags:
Listen host:port for HTTP endpoints.
--http-grace-period=2m Time to wait after an interrupt received for
HTTP Server.
--http-tls-config="" [EXPERIMENTAL] Path to the configuration file
--http.config="" [EXPERIMENTAL] Path to the configuration file
that can enable TLS or authentication for all
HTTP endpoints.
--ignore-deletion-marks-delay=24h
Expand Down
6 changes: 3 additions & 3 deletions docs/components/tools.md
Expand Up @@ -218,7 +218,7 @@ Flags:
Listen host:port for HTTP endpoints.
--http-grace-period=2m Time to wait after an interrupt received for
HTTP Server.
--http-tls-config="" [EXPERIMENTAL] Path to the configuration file
--http.config="" [EXPERIMENTAL] Path to the configuration file
that can enable TLS or authentication for all
HTTP endpoints.
--label=LABEL Prometheus label to use as timeline title
Expand Down Expand Up @@ -488,7 +488,7 @@ Flags:
Listen host:port for HTTP endpoints.
--http-grace-period=2m Time to wait after an interrupt received for
HTTP Server.
--http-tls-config="" [EXPERIMENTAL] Path to the configuration file
--http.config="" [EXPERIMENTAL] Path to the configuration file
that can enable TLS or authentication for all
HTTP endpoints.
--id=ID ... Block to be replicated to the destination
Expand Down Expand Up @@ -595,7 +595,7 @@ Flags:
Listen host:port for HTTP endpoints.
--http-grace-period=2m Time to wait after an interrupt received for HTTP
Server.
--http-tls-config="" [EXPERIMENTAL] Path to the configuration file that
--http.config="" [EXPERIMENTAL] Path to the configuration file that
can enable TLS or authentication for all HTTP
endpoints.
--log.format=logfmt Log format to use. Possible options: logfmt or
Expand Down
2 changes: 1 addition & 1 deletion docs/operating/https.md
Expand Up @@ -8,7 +8,7 @@ menu: operating

Thanos supports basic authentication and TLS. This is **experimental** and might change in the future.

To specify which HTTP TLS configuration file to load, use the `--http-tls-config` flag.
To specify which HTTP TLS configuration file to load, use the `--http.config` flag.
The file is written in [YAML format](https://en.wikipedia.org/wiki/YAML), defined by the scheme described below.

## Scheme
Expand Down
2 changes: 1 addition & 1 deletion pkg/extkingpin/flags.go
Expand Up @@ -47,7 +47,7 @@ func RegisterHTTPFlags(cmd FlagClause) (httpBindAddr *string, httpGracePeriod *m
httpBindAddr = cmd.Flag("http-address", "Listen host:port for HTTP endpoints.").Default("0.0.0.0:10902").String()
httpGracePeriod = ModelDuration(cmd.Flag("http-grace-period", "Time to wait after an interrupt received for HTTP Server.").Default("2m")) // by default it's the same as query.timeout.
httpTLSConfig = cmd.Flag(
"http-tls-config",
"http.config",
"[EXPERIMENTAL] Path to the configuration file that can enable TLS or authentication for all HTTP endpoints.",
).Default("").String()
return httpBindAddr, httpGracePeriod, httpTLSConfig
Expand Down

0 comments on commit 5edfbe2

Please sign in to comment.