Install prometheus-postgres-exporter by entering the following commands in the terminal:
sudo apt update sudo apt install prometheus-postgres-exporter
Description:
Prometheus exporter for PostgreSQL server metrics
Prometheus exporter for PostgreSQL server metrics, written in Go. Supportes Postgres versions 9.1 and up.
Homepage: https://github.com/wrouesnel/postgres_exporter/
Version: 0.4.1+ds-2
Section: universe/net