-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Move to unique metrics names #7
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fixes voxpupuli#5 Signed-off-by: Julien Pivotto <[email protected]>
b4ldr
added a commit
to b4ldr/puppet-prometheus_reporter
that referenced
this pull request
Oct 2, 2023
This commit removes the report_filename config parameter and adds a report_prefix parameter. AFAICT the current code suggests that it will write all host data to the same file. However the code writes the old data to the prom file giving all values -1 which is incorrect I looked at why this was and i can't find much information on the original issue[1] and PR[2]. further to this the current implementation is very racy if one sets REPORT_FILENAME This also updates the clean stale function toi only act on files with the report_prefix and avoid deleting files which may have been placed there by none puppetserver process [1]voxpupuli#5 [2]voxpupuli#7
b4ldr
added a commit
to b4ldr/puppet-prometheus_reporter
that referenced
this pull request
Oct 2, 2023
This commit removes the report_filename config parameter and adds a report_prefix parameter. AFAICT the current code suggests that it will write all host data to the same file. However the code writes the old data to the prom file giving all values -1 which is incorrect I looked at why this was and i can't find much information on the original issue[1] and PR[2]. further to this the current implementation is very racy if one sets REPORT_FILENAME This also updates the clean stale function toi only act on files with the report_prefix and avoid deleting files which may have been placed there by none puppetserver process [1]voxpupuli#5 [2]voxpupuli#7
b4ldr
added a commit
to b4ldr/puppet-prometheus_reporter
that referenced
this pull request
Oct 2, 2023
This commit removes the report_filename config parameter and adds a report_prefix parameter. AFAICT the current code suggests that it will write all host data to the same file. However the code writes the old data to the prom file giving all values -1 which is incorrect I looked at why this was and i can't find much information on the original issue[1] and PR[2]. further to this the current implementation is very racy if one sets REPORT_FILENAME This also updates the clean stale function toi only act on files with the report_prefix and avoid deleting files which may have been placed there by none puppetserver process [1]voxpupuli#5 [2]voxpupuli#7
b4ldr
added a commit
to b4ldr/puppet-prometheus_reporter
that referenced
this pull request
Oct 2, 2023
This commit removes the report_filename config parameter and adds a report_prefix parameter. AFAICT the current code suggests that it will write all host data to the same file. However the code writes the old data to the prom file giving all values -1 which is incorrect I looked at why this was and i can't find much information on the original issue[1] and PR[2]. further to this the current implementation is very racy if one sets REPORT_FILENAME This also updates the clean stale function toi only act on files with the report_prefix and avoid deleting files which may have been placed there by none puppetserver process [1]voxpupuli#5 [2]voxpupuli#7
b4ldr
added a commit
to b4ldr/puppet-prometheus_reporter
that referenced
this pull request
Oct 2, 2023
This commit removes the report_filename config parameter and adds a report_prefix parameter. AFAICT the current code suggests that it will write all host data to the same file. However the code writes the old data to the prom file giving all values -1 which is incorrect I looked at why this was and i can't find much information on the original issue[1] and PR[2]. further to this the current implementation is very racy if one sets REPORT_FILENAME This also updates the clean stale function toi only act on files with the report_prefix and avoid deleting files which may have been placed there by none puppetserver process [1]voxpupuli#5 [2]voxpupuli#7
b4ldr
added a commit
to b4ldr/puppet-prometheus_reporter
that referenced
this pull request
Oct 2, 2023
This commit removes the report_filename config parameter and adds a report_prefix parameter. AFAICT the current code suggests that it will write all host data to the same file. However the code writes the old data to the prom file giving all values -1 which is incorrect I looked at why this was and i can't find much information on the original issue[1] and PR[2]. further to this the current implementation is very racy if one sets REPORT_FILENAME This also updates the clean stale function toi only act on files with the report_prefix and avoid deleting files which may have been placed there by none puppetserver process [1]voxpupuli#5 [2]voxpupuli#7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #5
Signed-off-by: Julien Pivotto [email protected]