mariadb-stat for MariaDB Tools

Overview

The mariadb-stat utility.

mariadb-stat Options for MariaDB Tools

Option

Argument

Description

--ask-pass

Prompt for a password when connecting to MariaDB.

--collect

Collect diagnostic data when the trigger occurs.

--collect-gdb

Collect GDB stacktraces.

--collect-oprofile

Collect oprofile data.

--collect-strace

Collect strace data.

--collect-tcpdump

Collect tcpdump data.

--config

Read this comma-separated list of config files.

--cycles

How many times "--variable" must be greater than "--threshold" before triggering "--collect".

--daemonize

Daemonize the tool.

--defaults-file

Only read mariadb options from the given file.

--dest

Where to save diagnostic data from "--collect".

--disk-bytes-free

Do not "--collect" if the disk has less than this much free space.

--disk-pct-free

Do not "--collect" if the disk has less than this percent free space.

--function

What to watch for the trigger.

--help

Print help and exit.

--host

Host to connect to.

--interval

How often to check the if trigger is true, in seconds.

--iterations

How many times to "--collect" diagnostic data.

--log

Print all output to this file when daemonized.

--mariadb-only

Trigger only MariaDB related captures, ignoring all others.

--match

The pattern to use when watching SHOW PROCESSLIST.

--notify-by-email

Send an email to these addresses for every "--collect".

--password

Password to use when connecting.

--pid

Create the given PID file.

--plugin

Load a plugin to hook into the tool and extend is functionality.

--port

Port number to use for connection.

--prefix

The filename prefix for diagnostic samples.

--retention-count

Keep the data for the last N runs.

--retention-size

Keep up to --retention-size MB of data.

--retention-time

Number of days to retain collected samples.

--run-time

How long to "--collect" diagnostic data when the trigger occurs.

--sleep

How long to sleep after "--collect".

--sleep-collect

How long to sleep between collection loop cycles.

--socket

Socket file to use for connection.

--stalk

Watch the server and wait for the trigger to occur.

--threshold

The maximum acceptable value for "--variable".

--user

User for login if not current user.

--variable

The variable to compare against "--threshold".

--verbose

Print more or less information while running.

--version

Print tool's version and exit.