Skip to content

fix: ignore setting google_dataplex.max_messages#1261

Merged
sysadmind merged 2 commits intomasterfrom
cristian/ignore-setting-gcp-max-messages
Feb 18, 2026
Merged

fix: ignore setting google_dataplex.max_messages#1261
sysadmind merged 2 commits intomasterfrom
cristian/ignore-setting-gcp-max-messages

Conversation

@cristiangreco
Copy link
Contributor

Followup of #1252

Ignore this setting altogether, as logging a warn at each scrape for a cloud provider specific entry seems a waste of resources.

@cristiangreco cristiangreco force-pushed the cristian/ignore-setting-gcp-max-messages branch from 010cdc6 to 2aabc2c Compare February 16, 2026 17:57
@cristiangreco cristiangreco marked this pull request as ready for review February 16, 2026 17:58
Copy link
Contributor

@sysadmind sysadmind left a comment

Choose a reason for hiding this comment

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

Just a nit. LGTM

// NOTE: If you add more vartypes here, you must update the supported
// types in normaliseUnit() below
query := "SELECT name, setting, COALESCE(unit, ''), short_desc, vartype FROM pg_settings WHERE vartype IN ('bool', 'integer', 'real') AND name != 'sync_commit_cancel_wait';"
query := "SELECT name, setting, COALESCE(unit, ''), short_desc, vartype FROM pg_settings WHERE vartype IN ('bool', 'integer', 'real') AND name NOT IN ('sync_commit_cancel_wait', 'google_dataplex.max_messages');"
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should have a comment about why we ignore it? Future user won't have the context.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a comment!

Followup of #1252

Ignore this setting altogether, as logging a warn at each scrape
for a cloud provider specific entry seems a waste of resources.

Signed-off-by: Cristian Greco <cristian@regolo.cc>
@cristiangreco cristiangreco force-pushed the cristian/ignore-setting-gcp-max-messages branch from 2aabc2c to 2c2a8a6 Compare February 18, 2026 09:55
Signed-off-by: Cristian Greco <cristian@regolo.cc>
@sysadmind sysadmind merged commit d14e06c into master Feb 18, 2026
29 checks passed
@sysadmind sysadmind deleted the cristian/ignore-setting-gcp-max-messages branch February 18, 2026 14:57
@SuperQ SuperQ mentioned this pull request Feb 25, 2026
JiriCtvrtka pushed a commit to percona/postgres_exporter that referenced this pull request Feb 26, 2026
…ity#1261)

* fix: ignore setting `google_dataplex.max_messages`

Followup of prometheus-community#1252

Ignore this setting altogether, as logging a warn at each scrape
for a cloud provider specific entry seems a waste of resources.

Signed-off-by: Cristian Greco <cristian@regolo.cc>

* add comment

Signed-off-by: Cristian Greco <cristian@regolo.cc>

---------

Signed-off-by: Cristian Greco <cristian@regolo.cc>
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