2022-04-22 18:15:45 +08:00
|
|
|
# # collect interval
|
|
|
|
# interval = 15
|
|
|
|
|
|
|
|
# [[instances]]
|
|
|
|
# address = "127.0.0.1:6379"
|
|
|
|
# username = ""
|
|
|
|
# password = ""
|
2022-04-23 23:33:46 +08:00
|
|
|
# pool_size = 2
|
2022-04-22 18:15:45 +08:00
|
|
|
|
2022-04-23 23:58:48 +08:00
|
|
|
# # Optional. Specify redis commands to retrieve values
|
|
|
|
# commands = [
|
2022-04-24 11:47:03 +08:00
|
|
|
# {command = ["get", "sample-key1"], metric = "custom_metric_name1"},
|
|
|
|
# {command = ["get", "sample-key2"], metric = "custom_metric_name2"}
|
2022-04-23 23:58:48 +08:00
|
|
|
# ]
|
|
|
|
|
2022-04-22 18:15:45 +08:00
|
|
|
# # interval = global.interval * interval_times
|
|
|
|
# interval_times = 1
|
|
|
|
|
2022-04-25 16:36:13 +08:00
|
|
|
# important! use global unique string to specify instance
|
2022-04-22 18:15:45 +08:00
|
|
|
# labels = { instance="n9e-10.2.3.4:6379" }
|
|
|
|
|
|
|
|
## Optional TLS Config
|
2022-04-23 23:33:46 +08:00
|
|
|
# use_tls = false
|
|
|
|
# tls_min_version = "1.2"
|
2022-04-22 18:15:45 +08:00
|
|
|
# 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
|