Uninstall the MySQL app

Stop the data collection

Stop the data collection in your managed and unmanaged MySQL instances.

Stop the data collection in your managed MySQL instances

To uninstall the data collection for your managed instances, follow the below instructions:

  1. Remove the Telegraf configuration file /etc/telegraf/telegraf.d/inputs.mysql.conf as well as the FluentBit config file /etc/td-agent-bit/observe-mysql.conf.
  2. Restart Telegraf using the command service telegraf restart.
  3. Restart Fluent Bit using the command service td-agent-bit restart.
  4. (Optionally) Remove the additional observability lines in your my.conf from the installation when you configured data collection on your managed instances.
  5. Disable the connection between your MySQL DB instance and Telegraf by deleting the telegraf-client user.
DROP USER 'telegraf-client'@'localhost';

Be sure to restart your MySQL DB service if necessary for any of these changes to take effect.

Stop data collection in your unmanaged MySQL instances

To uninstall the data collection for instances you do not manage, follow the below instructions:

1.On the server that you manage, where you installed Telegraf, remove the Telegraf configuration file /etc/telegraf/telegraf.d/inputs.mysql.conf.

  1. Restart Telegraf using the command service telegraf restart.
  2. On your MySQL DB instance, disable remote connections from Telegraf by deleting the telegraf-client user.
DROP USER 'telegraf-client';

Uninstall the MySQL app

Follow the instructions in Delete an app to uninstall the MySQL app.