removed "panic" from zfs plugin

added zfs plugin to README.md
This commit is contained in:
Roman Statsevich 2015-11-09 15:37:00 +03:00
parent 0e32fa03c5
commit 2221ee6a1e
2 changed files with 2 additions and 1 deletions

View File

@ -190,6 +190,7 @@ Telegraf currently has support for collecting metrics from:
* rabbitmq * rabbitmq
* redis * redis
* rethinkdb * rethinkdb
* zfs
* zookeeper * zookeeper
* system * system
* cpu * cpu

View File

@ -62,7 +62,7 @@ func (z *Zfs) Gather(acc plugins.Accumulator) error {
for _, metric := range kstatMetrics { for _, metric := range kstatMetrics {
lines, err := common.ReadLines(kstatPath + "/" + metric) lines, err := common.ReadLines(kstatPath + "/" + metric)
if err != nil { if err != nil {
panic(err) return err
} }
for i, line := range lines { for i, line := range lines {
if i == 0 || i == 1 { if i == 0 || i == 1 {