Multiple database support #975
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
Answered by
burningalchemist
Apr 23, 2026
Replies: 1 comment 2 replies
-
|
Hi @salacr, please check the documentation, sql_exporter has support for multiple databases for a long time. You can find details in the README and also in the available examples. Let me know if you need any assistance. 👍 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @salacr, thank you for clarifying. 👍
Yeah, the database auto-discovery is not implemented or planned for the time being, as it's non-trivial given the database-agnostic direction this utility has. Given this constraint, I'd rather keep it outside of the scope, so the configuration is user's responsibility.
It's possible to render the templated configuration, and then use the
/reloadendpoint to let sql_exporter utilise the updated config. One of the users previously mentioned operating sql_exporter usingreloadto dynamically manage query configuration on a large scale with over 500+ databases. Maybe this would work for you.UPD: Your problem could be also potentially solved with
jobs…