Improve sample config
This commit is contained in:
parent
75439f9185
commit
ead52e807e
16
config.go
16
config.go
|
@ -213,12 +213,16 @@ type hasDescr interface {
|
||||||
|
|
||||||
var header = `# Tivan configuration
|
var header = `# Tivan configuration
|
||||||
|
|
||||||
|
# If this file is missing an [agent] section, you must first generate a
|
||||||
|
# valid config with 'tivan -sample-config > tivan.toml'
|
||||||
|
|
||||||
# Tivan is entirely plugin driven. All metrics are gathered from the
|
# Tivan is entirely plugin driven. All metrics are gathered from the
|
||||||
# declared plugins.
|
# declared plugins.
|
||||||
|
|
||||||
# Even if a plugin has no configuration, it must be declared in here
|
# Even if a plugin has no configuration, it must be declared in here
|
||||||
# to be active. Declaring a plugin means just specifying the name
|
# to be active. Declaring a plugin means just specifying the name
|
||||||
# as a section with no variables.
|
# as a section with no variables. To deactivate a plugin, comment
|
||||||
|
# out the name and any variables.
|
||||||
|
|
||||||
# Use 'tivan -config tivan.toml -test' to see what metrics a config
|
# Use 'tivan -config tivan.toml -test' to see what metrics a config
|
||||||
# file would generate.
|
# file would generate.
|
||||||
|
@ -233,10 +237,16 @@ var header = `# Tivan configuration
|
||||||
|
|
||||||
# Configuration for influxdb server to send metrics to
|
# Configuration for influxdb server to send metrics to
|
||||||
[influxdb]
|
[influxdb]
|
||||||
url = "http://10.20.2.4:8086" # required. Host and port are necessary as well.
|
# The full HTTP endpoint URL for your InfluxDB instance
|
||||||
database = "tivan" # required. You need to pre-create this in influxdb
|
url = "http://10.20.2.4:8086" # required.
|
||||||
|
|
||||||
|
# The target database for metrics. This database must already exist
|
||||||
|
database = "tivan" # required.
|
||||||
|
|
||||||
# username = "tivan"
|
# username = "tivan"
|
||||||
# password = "metricsmetricsmetricsmetrics"
|
# password = "metricsmetricsmetricsmetrics"
|
||||||
|
|
||||||
|
# Set the user agent for the POSTs (can be useful for log differentiation)
|
||||||
# user_agent = "tivan"
|
# user_agent = "tivan"
|
||||||
# tags = { "dc": "us-east-1" }
|
# tags = { "dc": "us-east-1" }
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ type Mysql struct {
|
||||||
var sampleConfig = `
|
var sampleConfig = `
|
||||||
# specify servers via a url matching:
|
# specify servers via a url matching:
|
||||||
# [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify]]
|
# [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify]]
|
||||||
|
# e.g. root:root@http://10.0.0.18/?tls=false
|
||||||
#
|
#
|
||||||
# If no servers are specified, then localhost is used as the host.
|
# If no servers are specified, then localhost is used as the host.
|
||||||
servers = ["localhost"]`
|
servers = ["localhost"]`
|
||||||
|
|
Loading…
Reference in New Issue