Fill in your password
Replace your_password_here with password of your choice.
Better Stack PostgreSQL logging | Better Stack Documentation
What you would like to collect from your PostgreSQL?
Collect logs and metrics from your PostgreSQL database using Vector and Prometheus postgres exporter.
Create a dedicated PostgreSQL user for Vector to securely scrape metrics:
Create a new user
Copied!
Replace your_password_here with password of your choice.
Create /etc/postgres_exporter.conf config file using PostgreSQL user password you've just set:
/etc/postgres_exporter.conf
Copied!
Install latest postgres exporter:
Install postgres exporter
Copied!
Start the PostgreSQL exporter:
Select your platform:
Install and configure Vector on Ubuntu or Debian:
Install and configure Vector on any Red Hat-based Linux:
Install and configure Vector on macOS:
Curious about what the script does?
The script will ask for confirmation before making any changes.
You should see your logs in Better Stack → Live tail.
Collect logs from your PostgreSQL database using Vector.
Select your platform:
Install and configure Vector on Ubuntu or Debian:
Install and configure Vector on any Red Hat-based Linux:
Install and configure Vector on macOS:
Curious about what the script does?
The script will ask for confirmation before making any changes.
You should see your logs in Better Stack → Live tail.
Please let us know at hello@betterstack.com.
We're happy to help! 🙏
Find step-by-step instructions in our dedicated Vector guide.