Skip to content

Commit

Permalink
removed "panic" from zfs plugin
Browse files Browse the repository at this point in the history
also added zfs plugin to README.md

closes influxdata#341
  • Loading branch information
Roman Statsevich authored and Jeffrey Allen committed Nov 18, 2015
1 parent 3e7c286 commit 9f71f28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ changed to just run docker commands in the Makefile. See `make docker-run` and
- [#318](https://github.com/influxdb/telegraf/pull/318): Prometheus output. Thanks @oldmantaiter!
- [#338](https://github.com/influxdb/telegraf/pull/338): Restart Telegraf on package upgrade. Thanks @linsomniac!
- [#337](https://github.com/influxdb/telegraf/pull/337): Jolokia plugin, thanks @saiello!
- [#317](https://github.com/influxdb/telegraf/issues/317): ZFS plugin, thanks @cornerot!

### Bugfixes
- [#331](https://github.com/influxdb/telegraf/pull/331): Dont overwrite host tag in redis plugin.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ Telegraf currently has support for collecting metrics from:
* rabbitmq
* redis
* rethinkdb
* zfs
* zookeeper
* system
* cpu
Expand Down
2 changes: 1 addition & 1 deletion plugins/zfs/zfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (z *Zfs) Gather(acc plugins.Accumulator) error {
for _, metric := range kstatMetrics {
lines, err := common.ReadLines(kstatPath + "/" + metric)
if err != nil {
panic(err)
return err
}
for i, line := range lines {
if i == 0 || i == 1 {
Expand Down

0 comments on commit 9f71f28

Please sign in to comment.