Set consul server default to localhost:8500 (#3703)
This commit is contained in:
parent
09e460a647
commit
8a01a0fbed
|
@ -82,12 +82,13 @@ var (
|
|||
DefaultSDConfig = SDConfig{
|
||||
TagSeparator: ",",
|
||||
Scheme: "http",
|
||||
Server: "localhost:8500",
|
||||
}
|
||||
)
|
||||
|
||||
// SDConfig is the configuration for Consul service discovery.
|
||||
type SDConfig struct {
|
||||
Server string `yaml:"server"`
|
||||
Server string `yaml:"server,omitempty"`
|
||||
Token config_util.Secret `yaml:"token,omitempty"`
|
||||
Datacenter string `yaml:"datacenter,omitempty"`
|
||||
TagSeparator string `yaml:"tag_separator,omitempty"`
|
||||
|
|
|
@ -305,10 +305,10 @@ The following meta labels are available on targets during [relabeling](#relabel_
|
|||
```yaml
|
||||
# The information to access the Consul API. It is to be defined
|
||||
# as the Consul documentation requires.
|
||||
server: <host>
|
||||
[ server: <host> | default = "localhost:8500" ]
|
||||
[ token: <secret> ]
|
||||
[ datacenter: <string> ]
|
||||
[ scheme: <string> | default = "http"]
|
||||
[ scheme: <string> | default = "http" ]
|
||||
[ username: <string> ]
|
||||
[ password: <secret> ]
|
||||
|
||||
|
|
Loading…
Reference in New Issue