Skip to content

Commit

Permalink
Add support for mysqld_exporter.collect.info_schema.schemastats
Browse files Browse the repository at this point in the history
  • Loading branch information
gberche-orange authored and benjaminguttmann-avtq committed Dec 17, 2024
1 parent c2dc2f3 commit ecc87c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jobs/mysqld_exporter/spec
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ properties:
description: "Collect metrics from information_schema.tables"
mysqld_exporter.collect.info_schema.tables_databases:
description: "The list of databases to collect table stats for, or '*' for all"
mysqld_exporter.collect.info_schema.schemastats:
description: "If running with userstat=1, set to true to collect schema statistics"
mysqld_exporter.collect.info_schema.tablestats:
description: "If running with userstat=1, set to true to collect table statistics"
mysqld_exporter.collect.info_schema.userstats:
Expand Down
3 changes: 3 additions & 0 deletions jobs/mysqld_exporter/templates/bin/mysqld_exporter_ctl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ case $1 in
<% if_p('mysqld_exporter.collect.info_schema.tables_databases') do |tables_databases| %> \
--collect.info_schema.tables.databases="<%= tables_databases %>" \
<% end %> \
<% if_p('mysqld_exporter.collect.info_schema.schemastats') do |enabled| %> \
<%= enabled ? "--collect.info_schema.schemastats" : "--no-collect.info_schema.schemastats" %> \
<% end %> \
<% if_p('mysqld_exporter.collect.info_schema.tablestats') do |enabled| %> \
<%= enabled ? "--collect.info_schema.tablestats" : "--no-collect.info_schema.tablestats" %> \
<% end %> \
Expand Down

0 comments on commit ecc87c2

Please sign in to comment.