processes: Don't return error if process exited (#1283)
This commit is contained in:
parent
0ebf1c1ad7
commit
d5add07c0b
|
@ -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.
|
- [#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.
|
- [#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.
|
- [#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]
|
## 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")
|
statFile := path.Join("/proc", file.Name(), "stat")
|
||||||
data, err := p.readProcFile(statFile)
|
data, err := p.readProcFile(statFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if !file.IsDir() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if data == nil {
|
if data == nil {
|
||||||
|
|
Loading…
Reference in New Issue