Package: prometheus-mysqld-exporter
Version: 0.11.0+ds-1
Severity: normal
Tags: patch

Hi!

Attached a patch to update the default file to the latest options
supported by the daemon and to clean and unify its formatting.

Thanks,
Guillem
diff --git i/debian/default w/debian/default
index a695521..2530dba 100644
--- i/debian/default
+++ w/debian/default
@@ -21,98 +21,96 @@ ARGS='--config.my-cnf /etc/mysql/monitor_extra.cnf'
 
 # Usage of prometheus-mysqld-exporter:
 #  --exporter.lock_wait_timeout=2
-#       Set a lock_wait_timeout on the connection to avoid long metadata
-#       locking.
+#    Set a lock_wait_timeout on the connection to avoid long metadata locking.
 #  --exporter.log_slow_filter
-#       Add a log_slow_filter to avoid slow query logging of scrapes. NOTE: Not
-#       supported by Oracle MySQL.
+#    Add a log_slow_filter to avoid slow query logging of scrapes.
+#    NOTE: Not supported by Oracle MySQL.
 #  --collect.heartbeat.database="heartbeat"
-#       Database from where to collect heartbeat data
+#    Database from where to collect heartbeat data.
 #  --collect.heartbeat.table="heartbeat"
-#       Table from where to collect heartbeat data
+#    Table from where to collect heartbeat data.
 #  --collect.info_schema.processlist.min_time=0
-#       Minimum time a thread must be in each state to be counted
+#    Minimum time a thread must be in each state to be counted.
 #  --collect.info_schema.tables.databases="*"
-#       The list of databases to collect table stats for, or '*' for all
+#    The list of databases to collect table stats for, or '*' for all.
 #  --collect.perf_schema.eventsstatements.limit=250
-#       Limit the number of events statements digests by response time
+#    Limit the number of events statements digests by response time.
 #  --collect.perf_schema.eventsstatements.timelimit=86400
-#       Limit how old the 'last_seen' events statements can be, in seconds
+#    Limit how old the 'last_seen' events statements can be, in seconds.
 #  --collect.perf_schema.eventsstatements.digest_text_limit=120
-#       Maximum length of the normalized statement text
+#    Maximum length of the normalized statement text.
 #  --collect.perf_schema.file_instances.filter=".*"
-#       RegEx file_name filter for performance_schema.file_summary_by_instance
+#    RegEx file_name filter for performance_schema.file_summary_by_instance.
 #  --collect.perf_schema.file_instances.remove_prefix="/var/lib/mysql/"
-#       Remove path prefix in performance_schema.file_summary_by_instance
+#    Remove path prefix in performance_schema.file_summary_by_instance.
 #  --web.listen-address=":9104"
-#       Address to listen on for web interface and telemetry.
+#    Address to listen on for web interface and telemetry.
 #  --web.telemetry-path="/metrics"
-#       Path under which to expose metrics.
-#  --config.my-cnf="$HOME/.my.cnf"
-#       Path to .my.cnf file to read MySQL credentials from.
-#  --collect.info_schema.processlist
-#       Collect current thread state counts from the
-#       information_schema.processlist
-#  --collect.info_schema.tables
-#       Collect metrics from information_schema.tables
-#  --collect.info_schema.innodb_tablespaces
-#       Collect metrics from information_schema.innodb_sys_tablespaces
+#    Path under which to expose metrics.
+#  --config.my-cnf="/home/guillem/.my.cnf"
+#    Path to .my.cnf file to read MySQL credentials from.
 #  --collect.info_schema.innodb_metrics
-#       Collect metrics from information_schema.innodb_metrics
+#    Collect metrics from information_schema.innodb_metrics.
 #  --collect.auto_increment.columns
-#       Collect auto_increment columns and max values from information_schema
+#    Collect auto_increment columns and max values from information_schema.
 #  --collect.global_status
-#       Collect from SHOW GLOBAL STATUS
+#    Collect from SHOW GLOBAL STATUS.
 #  --collect.global_variables
-#       Collect from SHOW GLOBAL VARIABLES
+#    Collect from SHOW GLOBAL VARIABLES.
 #  --collect.slave_status
-#       Collect from SHOW SLAVE STATUS
-#  --collect.perf_schema.tablelocks
-#       Collect metrics from
-#       performance_schema.table_lock_waits_summary_by_table
-#  --collect.perf_schema.eventsstatements
-#       Collect metrics from
-#       performance_schema.events_statements_summary_by_digest
-#  --collect.perf_schema.eventswaits
-#       Collect metrics from
-#       performance_schema.events_waits_summary_global_by_event_name
+#    Collect from SHOW SLAVE STATUS.
+#  --collect.info_schema.processlist
+#    Collect current thread state counts from the
+#    information_schema.processlist.
+#  --collect.info_schema.tables
+#    Collect metrics from information_schema.tables.
+#  --collect.info_schema.innodb_tablespaces
+#    Collect metrics from information_schema.innodb_sys_tablespaces.
 #  --collect.perf_schema.file_events
-#       Collect metrics from performance_schema.file_summary_by_event_name
+#    Collect metrics from performance_schema.file_summary_by_event_name.
 #  --collect.perf_schema.file_instances
-#       Collect metrics from performance_schema.file_summary_by_instance
+#    Collect metrics from performance_schema.file_summary_by_instance.
 #  --collect.binlog_size
-#       Collect the current size of all registered binlog files
+#    Collect the current size of all registered binlog files.
 #  --collect.perf_schema.tableiowaits
-#       Collect metrics from performance_schema.table_io_waits_summary_by_table
+#    Collect metrics from performance_schema.table_io_waits_summary_by_table.
 #  --collect.perf_schema.indexiowaits
-#       Collect metrics from
-#       performance_schema.table_io_waits_summary_by_index_usage
-#  --collect.info_schema.tablestats
-#       If running with userstat=1, set to true to collect table statistics
-#  --collect.info_schema.innodb_cmp
-#       Collect metrics from information_schema.innodb_cmp
-#  --collect.info_schema.innodb_cmpmem
-#       Collect metrics from information_schema.innodb_cmpmem
+#    Collect metrics from
+#    performance_schema.table_io_waits_summary_by_index_usage.
+#  --collect.perf_schema.tablelocks
+#    Collect metrics from performance_schema.table_lock_waits_summary_by_table.
+#  --collect.perf_schema.eventsstatements
+#    Collect metrics from
+#    performance_schema.events_statements_summary_by_digest.
+#  --collect.perf_schema.eventswaits
+#    Collect metrics from
+#    performance_schema.events_waits_summary_global_by_event_name.
 #  --collect.info_schema.query_response_time
-#       Collect query response time distribution if query_response_time_stats
-#       is ON.
+#    Collect query response time distribution if query_response_time_stats
+#    is ON.
 #  --collect.engine_tokudb_status
-#       Collect from SHOW ENGINE TOKUDB STATUS
+#    Collect from SHOW ENGINE TOKUDB STATUS.
 #  --collect.perf_schema.replication_group_member_stats
-#       Collect metrics from performance_schema.replication_group_member_stats
+#    Collect metrics from performance_schema.replication_group_member_stats.
 #  --collect.info_schema.userstats
-#       If running with userstat=1, set to true to collect user statistics
+#    If running with userstat=1, set to true to collect user statistics.
 #  --collect.info_schema.clientstats
-#       If running with userstat=1, set to true to collect client statistics
+#    If running with userstat=1, set to true to collect client statistics.
+#  --collect.info_schema.tablestats
+#    If running with userstat=1, set to true to collect table statistics.
+#  --collect.info_schema.innodb_cmp
+#    Collect metrics from information_schema.innodb_cmp.
+#  --collect.info_schema.innodb_cmpmem
+#    Collect metrics from information_schema.innodb_cmpmem.
 #  --collect.engine_innodb_status
-#       Collect from SHOW ENGINE INNODB STATUS
+#    Collect from SHOW ENGINE INNODB STATUS.
 #  --collect.heartbeat
-#       Collect from heartbeat
+#    Collect from heartbeat.
 #  --collect.slave_hosts
-#       Scrape information from 'SHOW SLAVE HOSTS'
+#    Scrape information from 'SHOW SLAVE HOSTS'.
 #  --log.level="info"
-#       Only log messages with the given severity or above. Valid levels:
-#       [debug, info, warn, error, fatal]
+#    Only log messages with the given severity or above.
+#    Valid levels: [debug, info, warn, error, fatal].
 #  --log.format="logger:stderr"
-#       Set the log target and format. Example:
-#       "logger:syslog?appname=bob&local=7" or "logger:stdout?json=true"
+#    Set the log target and format.
+#    Example: "logger:syslog?appname=bob&local=7" or "logger:stdout?json=true".

Reply via email to