removed "panic" from zfs plugin
added zfs plugin to README.md
This commit is contained in:
parent
0e32fa03c5
commit
2221ee6a1e
|
@ -190,6 +190,7 @@ Telegraf currently has support for collecting metrics from:
|
|||
* rabbitmq
|
||||
* redis
|
||||
* rethinkdb
|
||||
* zfs
|
||||
* zookeeper
|
||||
* system
|
||||
* cpu
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue