Skip to content

Commit

Permalink
Merge pull request #710 from CSCfi/mysql_wsrepstats
Browse files Browse the repository at this point in the history
plugin/mysql: optional wsrepstats setting
  • Loading branch information
bastelfreak authored Nov 11, 2017
2 parents 201388e + 6c0bb81 commit d06acc6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ collectd::plugin::mysql::database { 'betadase':
password => 'secret',
port => '3306',
masterstats => true,
wsrepstats => true,
}
```

Expand Down
1 change: 1 addition & 0 deletions manifests/plugin/mysql/database.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Optional[String] $socket = undef,
Optional[Boolean] $innodbstats = undef,
Optional[String] $slavenotifications = undef,
Optional[Boolean] $wsrepstats = undef,
) {

include ::collectd
Expand Down
3 changes: 3 additions & 0 deletions templates/mysql-database.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<%- if not @innodbstats.nil? -%>
InnodbStats <%= @innodbstats %>
<%- end -%>
<%- if not @wsrepstats.nil? -%>
WsrepStatsStats <%= @WsrepStats %>
<%- end -%>
<%- end -%>
<%- if not @slavenotifications.nil? -%>
SlaveNotifications <%= @slavenotifications %>
Expand Down

0 comments on commit d06acc6

Please sign in to comment.