Skip to content

Commit

Permalink
fix(#70): disable all non-custom Postgres metrics (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuester authored Jul 28, 2023
1 parent aab6568 commit 2dcaea6
Showing 1 changed file with 12 additions and 1 deletion.
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

0 comments on commit 2dcaea6

Please sign in to comment.