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:
- Remove the Telegraf configuration file
/etc/telegraf/telegraf.d/inputs.mysql.confas well as the FluentBit config file/etc/td-agent-bit/observe-mysql.conf. - Restart Telegraf using the command
service telegraf restart. - Restart Fluent Bit using the command
service td-agent-bit restart. - (Optionally) Remove the additional observability lines in your
my.conffrom the installation when you configured data collection on your managed instances. - Disable the connection between your MySQL DB instance and Telegraf by deleting the
telegraf-clientuser.
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.
- Restart Telegraf using the command
service telegraf restart. - On your MySQL DB instance, disable remote connections from Telegraf by deleting the
telegraf-clientuser.
DROP USER 'telegraf-client';Uninstall the MySQL app
Follow the instructions in Delete an app to uninstall the MySQL app.
Updated about 2 months ago