Skip to content

Instantly share code, notes, and snippets.

@DBLaw
Created January 13, 2017 00:34
Show Gist options
  • Save DBLaw/645b2582b7ce9e1a7929f5c8c831f182 to your computer and use it in GitHub Desktop.
Save DBLaw/645b2582b7ce9e1a7929f5c8c831f182 to your computer and use it in GitHub Desktop.
init_config:
instances:
- host: localhost
port: 6379
# Can be used in lieu of host/port
#
# unix_socket_path: /var/run/redis/redis.sock # optional, can be used in lieu of host/port
# Addional connection options
#
# db: 0
# password: mypassword
# socket_timeout: 5
# Optional SSL/TLS parameters
# ssl: False # Optional (default to False)
# ssl_keyfile: # Path to the client-side private keyfile
# ssl_certfile: # Path to the client-side certificate file
# ssl_ca_certs: # Path to the ca_certs file
# ssl_cert_reqs: # Specifies whether a certificate is required from the
# # other side of the connection, and whether it will be validated if
# # provided.
# * 0 for ssl.CERT_NONE (certificates ignored)
# * 1 for ssl.CERT_OPTIONAL (not required, but validated if provided)
# * 2 for ssl.CERT_REQUIRED (required and validated)
# Optional extra tags added to all redis metrics
# tags:
# - optional_tag1
# - optional_tag2
#
# Check the length of these keys
#
keys:
- key:value
- string
# Display a warning in the info page if the keys we're tracking are missing
# Default: True
#
# warn_on_missing_keys: True
# Max number of entries to fetch from the slow query log
# By default, the check will read this value from the redis config
# If it's above 128, it will default to 128 due to potential increased latency
# to retrieve more than 128 slowlog entries every 15 seconds
# If you need to get more entries from the slow query logs
# set the value here.
# Warning: It may impact the performance of your redis instance
# slowlog-max-len: 128
# Collect INFO COMMANDSTATS output as metrics.
# command_stats: False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment