Uninstalling the PostgreSQL DB App

Data Collection Uninstall

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. (Optionally) Remove the added additional observability lines in your postgresql.conf from this installation step.

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.

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

1. On a server that you manage, where Telegraf was installed, remove the Telegraf config file /etc/telegraf/telegraf.d/inputs.postgresql.conf.

2. Restart Telegraf using the command service telegraf restart.

3. On your PostgreSQL DB instance, disable remote connections from Telegraf by deleting the telegraf user:

DROP ROLE telegraf;

To uninstall the data collection in your Kubernetes cluster, follow the below instructions:

1. Remove the Telegraf deployment in your cluster.

2. Unlink the previously linked Kubernetes App under your Observe PostgreSQL App Configuration.

3. Uninstall the Observe Kubernetes App.

Uninstalling the App

To uninstall the PostgreSQL app from your Observe workspace, follow the deletion instructions located at Apps page.