-
Notifications
You must be signed in to change notification settings - Fork 772
Unable to get metrics from databases #1130
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
Comments
@Yeroha hey!👋 According to the Flags section of the README, the --auto-discover-databases flag has been deprecated. You might want to consider using the --extend.query-path option with a custom queries file instead. |
--extend.query-path is also listed as DEPRECATED.
|
I'm having the same problem. I tried adding all DBs as individual data source names, which gives me errors about duplicate metrics. The |
I also have the same issue. Running
Other collectors seem to work without issue.
|
My workaround is to use the (deprecated) custom queries feature (e.g. the queries from here). Together with |
What did you do?
I installed postgres_exporter 0.16.0 linux. I have 2 databases: test_db_1, test_db_2. Trying get metrics from tables pg_stat_user_tables for my databases, but i see metrics from only postgres DB. Inserted --auto-discover-databases to config file, but not working. User postgres_exporter has privileges on these databases
Why i'm not see metrics from DBs?
postgres_exporter version:
0.16.0
PostgreSQL version:
16.7.1
The text was updated successfully, but these errors were encountered: