Skip to content

Commit 9b588cf

Browse files
author
Gergo Rozsa
committed
tagging fix for yaml
1 parent 54ce36b commit 9b588cf

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

manifests/integrations/cassandra.pp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# The password for the datadog user
1515
# $tags
1616
# Optional array of tags
17+
# $max_returned_metrics
18+
# Optional number of maximum returned metrics, default 350
1719
#
1820
# Sample Usage:
1921
#
@@ -26,11 +28,12 @@
2628
#
2729
#
2830
class datadog_agent::integrations::cassandra(
29-
String $host = 'localhost',
30-
Integer $port = 7199,
31-
Optional[String] $user = undef,
32-
Optional[String] $password = undef,
33-
Optional[Hash] $tags = {},
31+
String $host = 'localhost',
32+
Integer $port = 7199,
33+
Optional[String] $user = undef,
34+
Optional[String] $password = undef,
35+
Optional[Hash] $tags = {},
36+
Optional[Integer] $max_returned_metrics = undef,
3437
) inherits datadog_agent::params {
3538
require ::datadog_agent
3639

templates/agent-conf.d/cassandra.yaml.erb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ instances:
1111
<% if @tags.length > 0 -%>
1212
tags:
1313
<%- @tags.each do |tag_name, tag_value| -%>
14-
<%= tag_name %>: <%= tag_value %>
14+
- <%= tag_name %>:<%= tag_value %>
1515
<% end -%>
1616
<% end -%>
17+
<% if @max_returned_metrics -%>
18+
max_returned_metrics: <%= @max_returned_metrics %>
19+
<% end -%>
1720

1821
init_config:
1922

0 commit comments

Comments
 (0)