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

Add SIGHUP support to reload telegraf config #539

Closed
wants to merge 1 commit into from

Conversation

titilambert
Copy link
Contributor

No description provided.

@sparrc
Copy link
Contributor

sparrc commented Jan 18, 2016

cool, thanks @titilambert 👍

@sparrc sparrc closed this in 551db20 Jan 18, 2016
@titilambert titilambert deleted the reload branch February 20, 2016 05:20
@starstong
Copy link

starstong commented Apr 26, 2018

hi,titilambert @titilambert .I have some problems about this.It seems to be related to "Add SIGHUP support to reload telegraf config",when I use tail input plugin to collect logs metrics ,start is well ,but after one hour or two 2 hour.The telegraf process is still there, but it cannot collect logs : )..and the telegrafa log is:
nohup: ignoring input
2018-04-19T12:19:02Z I! Database creation failed: Response Error: Status Code [405], expected [200], []
2018-04-19T12:19:02Z I! Starting Telegraf v1.5.2
2018-04-19T12:19:02Z I! Loaded outputs: influxdb
2018-04-19T12:19:02Z I! Loaded inputs: inputs.tail
2018-04-19T12:19:02Z I! Tags enabled: host=subs101
2018-04-19T12:19:02Z I! Agent Config: Interval:1s, Quiet:false, Hostname:"subs101", Flush Interval:10s
2018-04-19T14:30:50Z I! Reloading Telegraf config
2018-04-19T14:30:50Z I! Hang on, flushing any cached metrics before shutdown
2018-04-19T14:30:50Z I! Database creation failed: Response Error: Status Code [405], expected [200], []
2018-04-19T14:30:50Z I! Starting Telegraf v1.5.2
2018-04-19T14:30:50Z I! Loaded outputs: influxdb
2018-04-19T14:30:50Z I! Loaded inputs: inputs.tail
2018-04-19T14:30:50Z I! Tags enabled: host=subs101
2018-04-19T14:30:50Z I! Agent Config: Interval:1s, Quiet:false, Hostname:"subs101", Flush Interval:10s

.....my start telegraf way is:
nohup telegraf --config telegraf.config > out.log 2>&1 &

that is all . thanks
P.S. sorry for my poor english ~:)

@danielnelson
Copy link
Contributor

@Xin-T I don't think this related to the SIGHUP code, have you tried watch_method = "poll" on the tail plugin? If this doesn't help you can open an issue on the InfluxData Community site.

@starstong
Copy link

thx,I try this way now.

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.

4 participants