Fix missing device name #3
|
@ -22,6 +22,8 @@ def read_callback():
|
||||||
r'[^a-zA-Z0-9]',
|
r'[^a-zA-Z0-9]',
|
||||||
r'-',
|
r'-',
|
||||||
dev_info.path)[1:]
|
dev_info.path)[1:]
|
||||||
|
if not metric.plugin_instance:
|
||||||
|
metric.plugin_instance = "missing"
|
||||||
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], interval=INTERVAL)
|
metric.dispatch(TYPE_STATS, [value], interval=INTERVAL)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user