forked from Sysdeploy/collectd-btrfs
Added interval in btrfs
This commit is contained in:
parent
1f53f2c3f8
commit
4db580ac62
|
@ -24,7 +24,7 @@ def read_callback():
|
||||||
dev_info.path)[1:]
|
dev_info.path)[1:]
|
||||||
for counter, value in stats.counters.items():
|
for counter, value in stats.counters.items():
|
||||||
metric.type_instance = counter
|
metric.type_instance = counter
|
||||||
metric.dispatch(TYPE_STATS, [value])
|
metric.dispatch(TYPE_STATS, [value], interval=600)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
collectd.error("btrfs: read_callback: {}".format(e))
|
collectd.error("btrfs: read_callback: {}".format(e))
|
||||||
collectd.debug("btrfs: read done")
|
collectd.debug("btrfs: read done")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user