Skip to content
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

Fix psql_metrics error checking #78

Merged
merged 1 commit into from Jan 21, 2021

Conversation

Sharpie
Copy link
Member

@Sharpie Sharpie commented Jan 21, 2021

This commit updates the psql_metrics collection script to fix an
issue with error checking. Previously, the script sanitized the
hostname that output data was stored under by replacing "." characters
with "-" characters. But, the error checking routine attempted to
look up data using the un-sanitized hostname. This caused error
checking to always register a failure even when data collection
was successful, which resulted in email spam from cron.

@Sharpie Sharpie force-pushed the fix_psql_metrics branch 2 times, most recently from 588b805 to 55e705b Compare January 21, 2021 17:32
This commit updates the psql_metrics collection script to fix an
issue with error checking. Previously, the script sanitized the
hostname that output data was stored under by replacing "." characters
with "-" characters. But, the error checking routine attempted to
look up data using the un-sanitized hostname. This caused error
checking to always register a failure even when data collection
was successful, which resulted in email spam from cron.

Ref. puppetlabs#71
Fixes puppetlabs#77
@Sharpie Sharpie changed the title Fix psql_error checking Fix psql_metrics error checking Jan 21, 2021
Copy link
Contributor

@jarretlavallee jarretlavallee left a comment

Choose a reason for hiding this comment

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

LGTM. In the next major release, we should remove these gsubs everywhere and migrate the data now that we basically do not support graphite anymore.

@jarretlavallee jarretlavallee merged commit 778873e into puppetlabs:master Jan 21, 2021
@Sharpie Sharpie deleted the fix_psql_metrics branch March 23, 2021 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants