How to Install and Uninstall prometheus-postgres-exporter Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: November 23,2024

1. Install "prometheus-postgres-exporter" package

Here is a brief guide to show you how to install prometheus-postgres-exporter on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install prometheus-postgres-exporter

2. Uninstall "prometheus-postgres-exporter" package

In this section, we are going to explain the necessary steps to uninstall prometheus-postgres-exporter on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove prometheus-postgres-exporter $ sudo apt autoclean && sudo apt autoremove

3. Information about the prometheus-postgres-exporter package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: prometheus-postgres-exporter
Architecture: amd64
Version: 0.4.1+ds-2
Built-Using: golang-1.9 (= 1.9.3-1ubuntu1), golang-github-alecthomas-units (= 0.0~git20151022.0.2efee85-3), golang-github-beorn7-perks (= 0.0~git20160804.0.4c0e845-1), golang-github-blang-semver (= 3.5.1-1), golang-github-lib-pq (= 0.0~git20151007.0.ffe986a-1), golang-github-prometheus-client-golang (= 0.8.0-2), golang-github-prometheus-client-model (= 0.0.2+git20150212.12.fa8ad6f-2), golang-github-prometheus-common (= 0+git20180110.89604d1-1), golang-gopkg-alecthomas-kingpin.v2 (= 2.2.3-2), golang-goprotobuf (= 0.0~git20170808.0.1909bc2-1ubuntu2), golang-logrus (= 1.0.2-2), golang-procfs (= 0+git20170703.e645f4e-1ubuntu1), golang-protobuf-extensions (= 1.0.0-2), golang-yaml.v2 (= 0.0+git20170407.0.cd8b52f-1ubuntu2)
Priority: extra
Section: universe/net
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 7451
Depends: daemon | systemd-sysv, libc6 (>= 2.4)
Filename: pool/universe/p/prometheus-postgres-exporter/prometheus-postgres-exporter_0.4.1+ds-2_amd64.deb
Size: 2104772
MD5sum: 0bc47219000213ee30b55f9af0ebeef9
SHA1: 11c05764800fdccc333f3d20458a1ba1bf675b00
SHA256: 53fe0820e923dbaad78585e2e2a6c21eff6fa4c0b56234d36140a0953d1cd1d1
Homepage: https://github.com/wrouesnel/postgres_exporter/
Description: Prometheus exporter for PostgreSQL server metrics
Description-md5: dec58be127628fe201a9efd8fb3d48fe