Uninstall the PostgreSQL app

Stop the data collection

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

1. Remove the Telegraf config file /etc/telegraf/telegraf.d/inputs.postgresql.conf as well as the FluentBit config file /etc/td-agent-bit/observe-postgresql.conf.

2. Restart Telegraf using the command service telegraf restart.

3. Restart Fluent Bit using the command service td-agent-bit restart.

4. (Optional) Remove the added additional observability lines in your postgresql.conf that you added during data collection.

5. Disable connection between your PostgreSQL DB instance and Telegraf by deleting the telegraf user.

DROP OWNED BY telegraf;
DROP ROLE telegraf;

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

Uninstall the PostgreSQL app

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