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

Move to unique metrics names #7

Merged
merged 1 commit into from
Oct 23, 2016
Merged

Conversation

roidelapluie
Copy link
Member

Fixes #5

Signed-off-by: Julien Pivotto [email protected]

Fixes voxpupuli#5

Signed-off-by: Julien Pivotto <[email protected]>
@bastelfreak bastelfreak merged commit f0d0b4f into voxpupuli:master Oct 23, 2016
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants