The feedback
plugin is designed to collect and, optionally, upload configuration and usage information to MariaDB.org or to any other configured URL.
See the MariaDB User Feedback page on MariaDB.org to see collected MariaDB usage statistics.
The feedback
plugin exists in all MariaDB versions.
MariaDB is distributed with this plugin included, but it is not enabled by default. On Windows, this plugin is part of the server and has a special checkbox in the installer window. Either way, you need to explicitly install and enable it in order for feedback data to be sent.
Although the plugin's shared library is distributed with MariaDB by default, the plugin is not actually installed by MariaDB by default. There are two methods that can be used to install the plugin with MariaDB.
The first method can be used to install the plugin without restarting the server. You can install the plugin dynamically by executing INSTALL SONAME
or INSTALL PLUGIN
. For example:
INSTALL SONAME 'feedback';
The second method can be used to tell the server to load the plugin when it starts up. The plugin can be installed this way by providing the --plugin-load
or the --plugin-load-add
options. This can be specified as a command-line argument to mysqld
or it can be specified in a relevant server option group in an option file. For example:
[mariadb] ... plugin_load_add = feedback
You can uninstall the plugin dynamically by executing UNINSTALL SONAME
or UNINSTALL PLUGIN
. For example:
UNINSTALL SONAME 'feedback';
If you installed the plugin by providing the --plugin-load
or the --plugin-load-add
options in a relevant server option group in an option file, then those options should be removed to prevent the plugin from being loaded the next time the server is restarted.
You can enable the plugin by setting the feedback
option to ON
in a relevant server option group in an option file. For example:
[mariadb] ... feedback=ON
In Windows, the plugin can also be enabled during a new MSI installation. The MSI GUI installation provides the "Enable feedback plugin" checkbox to enable the plugin. The MSI command-line installation provides the FEEDBACK=1 command-line option to enable the plugin.
See the next section for how to verify the plugin is installed and active and (if needed) install the plugin.
To verify whether the feedback
plugin is installed and enabled, execute the SHOW PLUGINS
statement or query the information_schema.plugins
table. For example:
SELECT plugin_status FROM information_schema.plugins WHERE plugin_name = 'feedback';
If that SELECT
returns no rows, then you still need to install the plugin.
When the plugin is installed and enabled, you will see:
SELECT plugin_status FROM information_schema.plugins WHERE plugin_name = 'feedback'; +---------------+ | plugin_status | +---------------+ | ACTIVE | +---------------+
If you see DISABLED
instead of ACTIVE
, then you still need to enable the plugin.
The feedback
plugin will collect:
SHOW STATUS
and SHOW VARIABLES
. feedback_server_uid
, which is a SHA1 hash of the MAC address of the first network interface and the TCP port that the server listens on. The feedback
plugin creates the FEEDBACK
table in the INFORMATION_SCHEMA
database. To see the data that has been collected by the plugin, you can execute:
SELECT * FROM information_schema.feedback;
Only the contents of this table are sent to the feedback_url
.
MariaDB 10.0.14 added collation usage statistics. Each collation that has been used by the server will have a record in "SELECT * FROM information_schema.feedback" output, for example:
+----------------------------------------+---------------------+ | VARIABLE_NAME | VARIABLE_VALUE | +----------------------------------------+---------------------+ | Collation used utf8_unicode_ci | 10 | | Collation used latin1_general_ci | 20 | +----------------------------------------+---------------------+
Collations that have not been used will not be included into the result.
The feedback
plugin sends the data using a POST
request to any URL or a list of URLs that you specify by setting the feedback_url
system variable. By default, this is set to the following URL:
Both HTTP and HTTPS protocols are supported.
If HTTP traffic requires a proxy in your environment, then you can specify the proxy by setting the feedback_http_proxy
system variable.
If the feedback_url
system variable is not set to an empty string, then the plugin will automatically send a report to all URLs in the list a few minutes after the server starts up and then once a week after that.
If the feedback_url
system variable is set to an empty string, then the plugin will not automatically send any data. This may be necessary if outbound HTTP communication from your database server is not permitted. In this case, you can still upload the data manually, if you'd like.
First, generate the report file with the MariaDB command-line mysql
client:
$ mysql -e 'select * from information_schema.feedback' > report.txt
Then you can upload the generated report.txt
here using your web browser.
Or you can do it from the command line with tools such as curl
. For example:
$ curl -F [email protected] https://mariadb.org/feedback_plugin/post
Manual uploading allows you to be absolutely sure that we receive only the data shown in the INFORMATION_SCHEMA.FEEDBACK table and that no private or sensitive information is being sent.
Version | Status | Introduced |
---|---|---|
1.1 | Stable | MariaDB 10.0.10 |
1.1 | Beta | MariaDB 5.5.20, MariaDB 5.3.3 |
feedback_http_proxy
host:port
. --feedback-http=proxy=value
''
(empty) feedback_send_retry_wait
--feedback-send-retry-wait=#
60
1
to 86400
feedback_send_timeout
--feedback-send-timeout=#
60
1
to 86400
feedback_server_uid
feedback_url
--feedback-url=url
https://mariadb.org/feedback_plugin/post
feedback_user_info
feedback-url
). --feedback-user-info=string
feedback
OFF
- Disables the plugin without removing it from the mysql.plugins
table. ON
- Enables the plugin. If the plugin cannot be initialized, then the server will still continue starting up, but the plugin will be disabled. FORCE
- Enables the plugin. If the plugin cannot be initialized, then the server will fail to start with an error. FORCE_PLUS_PERMANENT
- Enables the plugin. If the plugin cannot be initialized, then the server will fail to start with an error. In addition, the plugin cannot be uninstalled with UNINSTALL SONAME
or UNINSTALL PLUGIN
while the server is running. --feedback=value
enumerated
ON
OFF
, ON
, FORCE
, FORCE_PLUS_PERMANENT
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/feedback-plugin/