I expected to only pull statistics for the "mydb" database.
Here is my service execute command:
ExecStart=/usr/local/bin/postgres_exporter --web.listen-address=localhost:9100 --web.telemetry-path=/metrics --disable-settings-metrics --auto-discover-databases --include-databases="mydb"
Here is my environment file referenced by the service:
Question: Am I using the right format for booleans in the execute command in service file?
--auto-discover-databases
--auto-discover-databases=true --> gives execute error, unknown value, true
--auto-discover-databases="true" --> gives execute error, unknown value, true
Question: How about format for variables in the environment file as shown above?
Environment info:
postgresql v14.6
postgres_exporter, version 0.11.1 (branch: HEAD, revision: b5fd2465646a09bb1c8dbd5c9c00b852da93927a)
build user: root@a2c981f603ff
build date: 20220818-20:58:17
go version: go1.18.5
platform: linux/amd64
I expected to only pull statistics for the "mydb" database.
Here is my service execute command:
ExecStart=/usr/local/bin/postgres_exporter --web.listen-address=localhost:9100 --web.telemetry-path=/metrics --disable-settings-metrics --auto-discover-databases --include-databases="mydb"
Here is my environment file referenced by the service:
When I test with the prometheus graphic interface, I expect to see only one line for mydb for this command:
pg_stat_database_blks_read
Instead I get results for all databases:
Question: Am I using the right format for booleans in the execute command in service file? --auto-discover-databases --auto-discover-databases=true --> gives execute error, unknown value, true --auto-discover-databases="true" --> gives execute error, unknown value, true
Question: How about format for variables in the environment file as shown above?
Environment info: postgresql v14.6
postgres_exporter, version 0.11.1 (branch: HEAD, revision: b5fd2465646a09bb1c8dbd5c9c00b852da93927a) build user: root@a2c981f603ff build date: 20220818-20:58:17 go version: go1.18.5 platform: linux/amd64
Linux 5.10.149-133.644.amzn2.x86_64 x86_64