Skip to content

Commit b1be17c

Browse files
Merge pull request #7 from ubicloud/shikhar/sync-postgres-exporter-service
Update postgres_exporter.service with additional flags
2 parents ef703c4 + b00978d commit b1be17c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

common/assets/postgres_exporter.service

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ Group=ubi_monitoring
1010
Type=simple
1111
Environment=DATA_SOURCE_NAME="host=/var/run/postgresql dbname=postgres"
1212
ExecStart=/usr/bin/postgres_exporter \
13-
--no-collector.stat_bgwriter
13+
--disable-default-metrics \
14+
--no-collector.stat_bgwriter \
15+
--no-collector.stat_database \
16+
--no-collector.locks \
17+
--no-collector.database \
18+
--extend.query-path=/usr/local/share/postgresql/postgres_exporter_queries.yaml
1419
ExecReload=/bin/kill -HUP $MAINPID
1520
Restart=always
1621

0 commit comments

Comments
 (0)