We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8dfc579 + 2022409 commit 57058cbCopy full SHA for 57058cb
2 files changed
manifests/integrations/varnish.pp
@@ -6,6 +6,9 @@
6
# varnishstat
7
# Path to the varnishstat binary
8
#
9
+# instance_name
10
+# Used in the varnishstat command for the -n argument
11
+#
12
# tags
13
# DataDog tags
14
@@ -19,8 +22,9 @@
19
22
# }
20
23
21
24
class datadog_agent::integrations::varnish (
- $varnishstat = '/usr/bin/varnishstat',
- $tags = [],
25
+ $varnishstat = '/usr/bin/varnishstat',
26
+ $instance_name = undef,
27
+ $tags = [],
28
) inherits datadog_agent::params {
29
include datadog_agent
30
templates/agent-conf.d/varnish.yaml.erb
@@ -2,6 +2,9 @@ init_config:
2
3
instances:
4
- varnishstat: <%= @varnishstat %>
5
+<% if @instance_name -%>
+ name: <%= @instance_name %>
+<% end -%>
<% if @tags and ! @tags.empty? -%>
tags:
<%- Array(@tags).each do |tag| -%>
0 commit comments