30 lines
779 B
TOML
30 lines
779 B
TOML
# # collect interval
|
|
# interval = 15
|
|
|
|
# [[instances]]
|
|
# address = "127.0.0.1:6379"
|
|
# username = ""
|
|
# password = ""
|
|
# pool_size = 2
|
|
|
|
# # Optional. Specify redis commands to retrieve values
|
|
# commands = [
|
|
# {command = ["get", "sample-key1"], metric = "custom_metric_name1"},
|
|
# {command = ["get", "sample-key2"], metric = "custom_metric_name2"}
|
|
# ]
|
|
|
|
# # interval = global.interval * interval_times
|
|
# interval_times = 1
|
|
|
|
# important! use global unique string to specify instance
|
|
# labels = { instance="n9e-10.2.3.4:6379" }
|
|
|
|
## Optional TLS Config
|
|
# use_tls = false
|
|
# tls_min_version = "1.2"
|
|
# tls_ca = "/etc/categraf/ca.pem"
|
|
# tls_cert = "/etc/categraf/cert.pem"
|
|
# tls_key = "/etc/categraf/key.pem"
|
|
## Use TLS but skip chain & host verification
|
|
# insecure_skip_verify = true
|