Fix missing device name
buildbot/multibuild_parent Build done. Details
buildbot/travis_bionic Build done. Details

- now is "missing" instead of an empty string
- this is triggered e.g. when mounting degraded mode. In normal
  operation it shouldn't happen
- Fixes #1
This commit is contained in:
Peter Šurda 2023-11-24 14:04:18 +08:00
parent 4dae2cd4dc
commit 587877e5db
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ def read_callback():
if not metric.plugin_instance:
metric.plugin_instance = "missing"
for counter, value in stats.counters.items():
metric.type_instance = counter
metric.dispatch(TYPE_STATS, [value], interval=INTERVAL)