Skip to content
Snippets Groups Projects
Commit d5add07c authored by Pierre Fersing's avatar Pierre Fersing Committed by Cameron Sparr
Browse files

processes: Don't return error if process exited (#1283)

parent 0ebf1c1a
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ time before a new metric is included by the plugin.
- [#1221](https://github.com/influxdata/telegraf/pull/1221): Fix influxdb n_shards counter.
- [#1258](https://github.com/influxdata/telegraf/pull/1258): Fix potential kernel plugin integer parse error.
- [#1268](https://github.com/influxdata/telegraf/pull/1268): Fix potential influxdb input type assertion panic.
- [#1283](https://github.com/influxdata/telegraf/pull/1283): Still send processes metrics if a process exited during metric collection.
## v0.13.1 [2016-05-24]
......
......@@ -141,6 +141,9 @@ func (p *Processes) gatherFromProc(fields map[string]interface{}) error {
statFile := path.Join("/proc", file.Name(), "stat")
data, err := p.readProcFile(statFile)
if err != nil {
if !file.IsDir() {
continue
}
return err
}
if data == nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment