Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#70): disable all non-custom Postgres metrics #79

Merged
merged 1 commit into from
Jul 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion exporters/postgres/docker-compose.postgres-exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,19 @@ services:
image: prometheuscommunity/postgres-exporter:${POSTGRES_EXPORTER_VERSION:-latest}
command:
- '--config.file=/etc/postgres-exporter/postgres_exporter.yml'
# disables the collection of logical replication metrics to keep the exporter working with Postgres 9.6 (https://github.com/medic/cht-watchdog/issues/55)
# disables the collection of all metrics except for custom queries (https://github.com/medic/cht-watchdog/issues/70)
- '--no-collector.database'
- '--no-collector.postmaster'
- '--no-collector.process_idle'
- '--no-collector.replication'
- '--no-collector.replication_slot'
- '--no-collector.stat_bgwriter'
- '--no-collector.stat_database'
- '--no-collector.statio_user_tables'
- '--no-collector.stat_statements'
- '--no-collector.stat_user_tables'
- '--disable-default-metrics'
- '--disable-settings-metrics'
environment:
- PG_EXPORTER_EXTEND_QUERY_PATH=/etc/postgres-exporter/queries.yml
volumes:
Expand Down