# Read metrics from one or many redis servers [[inputs.redis]] ## specify servers via a url matching: ## [protocol://][username:password]@address[:port] ## e.g. ## tcp://localhost:6379 ## tcp://username:password@192.168.99.100 ## unix:///var/run/redis.sock ## ## If no servers are specified, then localhost is used as the host. ## If no port is specified, 6379 is used servers = ["tcp://localhost:6379"] ## Optional. Specify redis commands to retrieve values # [[inputs.redis.commands]] # # The command to run where each argument is a separate element # command = ["get", "sample-key"] # # The field to store the result in # field = "sample-key-value" # # The type of the result # # Can be "string", "integer", or "float" # type = "string" ## Specify username and password for ACL auth (Redis 6.0+). You can add this ## to the server URI above or specify it here. The values here take ## precedence. # username = "" # password = "" ## Optional TLS Config ## Check tls/config.go ClientConfig for more options # tls_enable = true # tls_ca = "/etc/telegraf/ca.pem" # tls_cert = "/etc/telegraf/cert.pem" # tls_key = "/etc/telegraf/key.pem" ## Use TLS but skip chain & host verification # insecure_skip_verify = true