-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Reloading telegraf prevents prometheus output from updating #2282
Comments
I've got a PR to fix this, but it requires Go version 1.8: #2309 As soon as Go 1.8 is released I will get that merged into master and it will be ready for the 1.3 telegraf release, or possibly a 1.2.1+ telegraf release |
sparrc
added a commit
that referenced
this issue
Jan 24, 2017
sparrc
added a commit
that referenced
this issue
Jan 24, 2017
Great, thanks for the fast response! |
sparrc
added a commit
that referenced
this issue
Feb 16, 2017
sparrc
added a commit
that referenced
this issue
Feb 16, 2017
maxunt
pushed a commit
that referenced
this issue
Jun 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Reloading telegraf via a SIGHUP appears to prevent the output from the prometheus_client plugin from updating, even though telegraf itself continues to collect metrics as normal.
Relevant telegraf.conf:
The config below can be used to replicate the issue. The same symptoms occur when using 'real' metrics (CPU, mem, etc).
System info:
Telegraf 1.1.1 & 1.1.2 on Ubuntu 14.04.
I built 1.2 from source to see if the changes to prometheus_client caching would have any impact, but the issue still appears to be present there.
Steps to reproduce:
Start telegraf with the config above, then hit the prometheus endpoint periodically.
Telegraf's metric will be within a couple of seconds of the real time.
Reload telegraf.
date +%s && service telegraf reload
Start hitting the prometheus endpoint again, the
testmetric
will remain as it was before the reload, even hours later.Telegraf itself will still report the correct value when called with
-test
.Additional info:
There were previously reload-related issues with the prometheus_client plugin that were fixed in #1753.
Here's some sample debug log entries before/after a reload.
The text was updated successfully, but these errors were encountered: