Skip to content

Commit b3a6ab4

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

3 files changed

Lines changed: 13 additions & 7 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

manifests/integrations/mysql.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
Boolean $extra_performance_metrics = false,
8181
Boolean $schema_size_metrics = false,
8282
Boolean $disable_innodb_metrics = false,
83-
Boolean $dbm = false,
83+
Optional[Boolean] $dbm = undef,
8484
Optional[Array] $queries = [],
8585
Optional[Array] $instances = undef,
8686
Optional[Array] $logs = [],

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)