diff --git a/manifests/server.pp b/manifests/server.pp index 6e2d8c5..d07421e 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -50,6 +50,7 @@ $newrelic_nrsysmond_collector_host = undef, $newrelic_nrsysmond_labels = undef, $newrelic_nrsysmond_timeout = undef, + $newrelic_nrsysmond_disable_docker = undef, ) { include newrelic diff --git a/manifests/server/linux.pp b/manifests/server/linux.pp index 3cf223d..afa136d 100644 --- a/manifests/server/linux.pp +++ b/manifests/server/linux.pp @@ -51,7 +51,8 @@ $newrelic_nrsysmond_collector_host = undef, $newrelic_nrsysmond_labels = undef, $newrelic_nrsysmond_timeout = undef, -) inherits ::newrelic { + $newrelic_nrsysmond_disable_docker = undef, + ) inherits ::newrelic { if ! $newrelic_license_key { fail('You must specify a valid License Key.') diff --git a/templates/nrsysmond.cfg.erb b/templates/nrsysmond.cfg.erb index fbfefee..7557580 100644 --- a/templates/nrsysmond.cfg.erb +++ b/templates/nrsysmond.cfg.erb @@ -169,3 +169,14 @@ labels=<%= @newrelic_nrsysmond_labels %> <%- if @newrelic_nrsysmond_timeout -%> timeout=<%= @newrelic_nrsysmond_timeout %> <%- end -%> + +# +# Option : disable_docker +# Type : boolean +# Value : Set to true to disable Docker container statistics gathering. +# Default: false +# +#disable_docker=false +<%- if @newrelic_nrsysmond_disable_docker -%> +disable_docker=<%= @newrelic_nrsysmond_disable_docker %> +<%- end -%>