Skip to content

postgres_exporter

We use postgres_exporter to collect metrics from a running PostgreSQL server. Metrics collected are internal to PostgreSQL (e.g. tuple statistics or replication progress) and not related to the actual data stored (e.g. number of archived projects). For the latter, you may consider extending gitlab-exporter.

postgres_exporter is deployed by a Chef recipe in the gitlab-exporters cookbook.

New metrics can be defined in queries.yml.

  1. Create a new MR with the changes in queries.yml and the version in metadata.rb bumped.
  2. Get the MR approved and merged.
  3. Consult the workflow for cookbook changes to get the change deployed to staging and then to production.