Skip to content

Commit 1aba414

Browse files
authored
Merge pull request #572 from asenci/add_mysql_log
Add logs parameter to mysql integration
2 parents 7d0a7eb + d87ea41 commit 1aba414

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

manifests/integrations/mysql.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
Boolean $disable_innodb_metrics = false,
8080
Optional[Array] $queries = [],
8181
Optional[Array] $instances = undef,
82+
Optional[Array] $logs = [],
8283
) inherits datadog_agent::params {
8384
include datadog_agent
8485

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### MANAGED BY PUPPET
22

3+
<%
4+
require 'yaml'
5+
%>
6+
37
init_config:
48

59
instances:
@@ -48,3 +52,4 @@ instances:
4852

4953
<% end -%>
5054

55+
<%= {'logs'=>@logs}.to_yaml %>

0 commit comments

Comments
 (0)