Skip to content

PMM-14857 Prevent warning if you dont using config file.#375

Open
JiriCtvrtka wants to merge 1 commit intomainfrom
PMM-14857-pg-exporter-config
Open

PMM-14857 Prevent warning if you dont using config file.#375
JiriCtvrtka wants to merge 1 commit intomainfrom
PMM-14857-pg-exporter-config

Conversation

@JiriCtvrtka
Copy link

@JiriCtvrtka JiriCtvrtka commented Feb 26, 2026

PMM-14857

FB: Percona-Lab/pmm-submodules#4238

  • The default value for --config.file is now empty, so users relying solely on DSN/environment variables do not need to provide an empty config file.
  • The code only attempts to load the config file if a path is specified.
  • If no config file is provided, a debug log is emitted to clarify that default/DSN settings are being used.

Comment on lines -106 to -109
// if *queriesPath != "" {
// level.Warn(logger).Log("msg", "The extended queries.yaml config is DEPRECATED", "file", *queriesPath)
// }

Copy link
Author

Choose a reason for hiding this comment

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

Deprecated 2 years ago, removing.

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.

1 participant