-
Notifications
You must be signed in to change notification settings - Fork 763
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
How to discover the databases on a server dynamically, now that auto-discover-databases
is DEPRECARED?
#1068
Comments
auto-discover-databases
is DEPRECARED?
I understand that multi-target would be the way to move forward from other comments but for my use case, auto-discovering all the databases and trying to connect to them with a single user seems much easier than having to setup multiple targets. Is there a plan to better support this? Would you be open to contributions on that (I saw a few tickets and MRs but they don't seem very active). Exporting metrics at table level through database discovery would be great, I know there are alternatives that would perhaps support that, but having predefined collectors in this exporter makes configuration much easier. |
As I was going though the code base, trying to understand how to make it work, I realized that with autodiscovery + custom queries I could still achieve what I wanted (table level metrics for all the databases on the server, without having to explicitly configure each database). Currently my configuration to run the exporter looks something like:
And I'm just running those custom queries to get the table level metrics:
I understand the features are deprecated but it seems this use case is quite popular and I failed to understand why they were deprecated looking at the history/issues (but I welcome any thoughts on it, given my limited knowledge of the exporter, I'm not arguing whether it is a good or bad thing). |
As the
auto-discover-databases
parameter is now deprecated, what is the expected way to configure the exporter to collect metrics for all databases from a server?I have searched for this for quite a while and I do not find any example on how this is supposed to be done now.
It would be great to have such an example because at the moment we only get informed that this paramater has been deprecated but have been provided not clear guide on how to adjust.
The text was updated successfully, but these errors were encountered: