-
- Downloads
Update postgres_exporter metrics
Reduce volume of metrics produced by the postgres_exporter. * Disable `pg_stat_user_tables` metrics by default. * Update `pg_stat_user_tables` query to match GitLab.com production[0] Saves about 9500 metrics on a default omnibus install. With the per-table stats enabled, saves about 2800 metrics. Overall, this saves about 35% of the overall metrics load (700MiB). https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/5654 [0]: https://gitlab.com/gitlab-cookbooks/gitlab-exporters/-/merge_requests/194 Signed-off-by:Ben Kochie <bjk@gitlab.com>
Showing
- changelogs/unreleased/bjk-pg_stat_cleanup.yml 5 additions, 0 deletionschangelogs/unreleased/bjk-pg_stat_cleanup.yml
- files/gitlab-config-template/gitlab.rb.template 1 addition, 0 deletionsfiles/gitlab-config-template/gitlab.rb.template
- files/gitlab-cookbooks/monitoring/attributes/default.rb 1 addition, 0 deletionsfiles/gitlab-cookbooks/monitoring/attributes/default.rb
- files/gitlab-cookbooks/monitoring/recipes/postgres-exporter.rb 1 addition, 1 deletion.../gitlab-cookbooks/monitoring/recipes/postgres-exporter.rb
- files/gitlab-cookbooks/monitoring/templates/postgres-queries.yaml.erb 27 additions, 20 deletions...-cookbooks/monitoring/templates/postgres-queries.yaml.erb
- spec/chef/monitoring/postgres_exporter_spec.rb 10 additions, 1 deletionspec/chef/monitoring/postgres_exporter_spec.rb
Please register or sign in to comment