removed "panic" from zfs plugin
also added zfs plugin to README.md closes #341
This commit is contained in:
committed by
Cameron Sparr
parent
d54f6be639
commit
1a05899be0
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user