Skip to content

Creating DSN using database name. - #909

Open
BeniaminK wants to merge 1 commit into
prometheus:mainfrom
BeniaminK:main
Open

Creating DSN using database name.#909
BeniaminK wants to merge 1 commit into
prometheus:mainfrom
BeniaminK:main

Conversation

@BeniaminK

Copy link
Copy Markdown

This patch introduces the ability to specify a database name in the Data Source Name (DSN) configuration for the MySQL exporter.

Previously, the exporter would connect to the default database if no database name was provided.

With this change, users can define a specific database name in the configuration.

Signed-off-by: Beniamin Kalinowski <beniamin.kalinowski@gmail.com>

@ArthurSens ArthurSens left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, sorry for the super delayed review. It's a good change to enable configuring a default database, but as it is the chosen database won't filter all metric collectors to chose the configured database.

This information needs to be passed down to metric collectors so the filter applies everywhere.

It would also be awsome to have tests around the behavior we want to introduce here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants