Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions manifests/integrations/redis.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
# Optional array of tags
# $keys
# Optional array of keys to check length
# $command_stats
# Collect INFO COMMANDSTATS output as metrics
#
# Sample Usage:
#
Expand All @@ -34,12 +36,15 @@
$tags = [],
$keys = [],
$warn_on_missing_keys = true,
$command_stats = false,

) inherits datadog_agent::params {
include datadog_agent

validate_array($tags)
validate_array($keys)
validate_bool($warn_on_missing_keys)
validate_bool($command_stats)

if $ports == undef {
$_ports = [ $port ]
Expand Down
1 change: 1 addition & 0 deletions templates/agent-conf.d/redisdb.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ instances:
- host: <%= @host %>
port: <%= port %>
warn_on_missing_keys: <%= @warn_on_missing_keys %>
command_stats: <%= @command_stats %>
<% if @password.empty? %># <%end %>password: <%= @password %>
# unix_socket_path: /var/run/redis/redis.sock # optional, can be used in lieu of host/port
<% if @slowlog_max_len.empty? %># <%end %>slowlog-max-len: <%= @slowlog_max_len %>
Expand Down