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.
Defining new metrics
Section titled “Defining new metrics”New metrics can be defined in queries.yml
.
- Create a new MR with the changes in
queries.yml
and the version inmetadata.rb
bumped. - Get the MR approved and merged.
- Consult the workflow for cookbook changes to get the change deployed to staging and then to production.