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
|
* rabbitmq
|
||||||
* redis
|
* redis
|
||||||
* rethinkdb
|
* rethinkdb
|
||||||
|
* zfs
|
||||||
* zookeeper
|
* zookeeper
|
||||||
* system
|
* system
|
||||||
* cpu
|
* cpu
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue