Add webhook service address in the config file.
This commit is contained in:
parent
7c7b01ed24
commit
1b71e60d14
|
@ -61,6 +61,9 @@
|
||||||
## If set to true, do no set the "host" tag in the telegraf agent.
|
## If set to true, do no set the "host" tag in the telegraf agent.
|
||||||
omit_hostname = false
|
omit_hostname = false
|
||||||
|
|
||||||
|
## Address to listen for webhook
|
||||||
|
webhook_service_address = ":1925"
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# OUTPUT PLUGINS #
|
# OUTPUT PLUGINS #
|
||||||
|
|
|
@ -49,6 +49,9 @@
|
||||||
## Override default hostname, if empty use os.Hostname()
|
## Override default hostname, if empty use os.Hostname()
|
||||||
hostname = ""
|
hostname = ""
|
||||||
|
|
||||||
|
## Address to listen for webhook
|
||||||
|
webhook_service_address = ":1925"
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# OUTPUTS #
|
# OUTPUTS #
|
||||||
|
|
|
@ -59,6 +59,7 @@ func NewConfig() *Config {
|
||||||
RoundInterval: true,
|
RoundInterval: true,
|
||||||
FlushInterval: internal.Duration{Duration: 10 * time.Second},
|
FlushInterval: internal.Duration{Duration: 10 * time.Second},
|
||||||
FlushJitter: internal.Duration{Duration: 5 * time.Second},
|
FlushJitter: internal.Duration{Duration: 5 * time.Second},
|
||||||
|
WebhookServiceAddress: ":1925",
|
||||||
},
|
},
|
||||||
|
|
||||||
Tags: make(map[string]string),
|
Tags: make(map[string]string),
|
||||||
|
@ -123,7 +124,7 @@ type AgentConfig struct {
|
||||||
Hostname string
|
Hostname string
|
||||||
OmitHostname bool
|
OmitHostname bool
|
||||||
|
|
||||||
//
|
// Address for listening webhooks
|
||||||
WebhookServiceAddress string
|
WebhookServiceAddress string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -222,6 +223,9 @@ var header = `# Telegraf Configuration
|
||||||
## If set to true, do no set the "host" tag in the telegraf agent.
|
## If set to true, do no set the "host" tag in the telegraf agent.
|
||||||
omit_hostname = false
|
omit_hostname = false
|
||||||
|
|
||||||
|
## Address to listen for webhook
|
||||||
|
webhook_service_address = ":1925"
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# OUTPUT PLUGINS #
|
# OUTPUT PLUGINS #
|
||||||
|
|
Loading…
Reference in New Issue