Raj Kamal Singh 6f3183823f
Feat: postgres integration v0 (#4704)
* chore: update annotations for pre blocks in configuration instructions

* chore: update list of collected metrics for postgres integration

* chore: change non-string units to string in metrics collected list

* chore: some cleanups for postgres config instructions

* chore: some cleanup to metrics connection status resource labels

* chore: remove stub pipeline in postgres integration - no interesting log parsing to be done
2024-03-18 18:20:12 +05:30

554 B

Prepare postgres for monitoring

  • Have a running postgresql instance
  • Have the monitoring user created
  • Have the monitoring user granted the necessary permissions

This receiver supports PostgreSQL versions 9.6+

For PostgreSQL versions 10+, run:

create user monitoring with password '<PASSWORD>';
grant pg_monitor to monitoring;
grant SELECT ON pg_stat_database to monitoring;

For PostgreSQL versions >= 9.6 and <10, run:

create user monitoring with password '<PASSWORD>';
grant SELECT ON pg_stat_database to monitoring;