mirror of
https://github.com/nicolargo/glances.git
synced 2024-10-26 12:08:28 +03:00
Sensors data is not exported using InfluxDB2 exporter #2856
This commit is contained in:
parent
ccfd8f0aa9
commit
452fd6497e
@ -139,8 +139,7 @@ class Export(GlancesExport):
|
|||||||
if k in fields:
|
if k in fields:
|
||||||
tags[k] = str(fields[k])
|
tags[k] = str(fields[k])
|
||||||
# Remove it from the field list (can not be a field and a tag)
|
# Remove it from the field list (can not be a field and a tag)
|
||||||
if k in fields:
|
fields.pop(k)
|
||||||
fields.pop(fields[k])
|
|
||||||
# Add the measurement to the list
|
# Add the measurement to the list
|
||||||
ret.append({'measurement': name, 'tags': tags, 'fields': fields})
|
ret.append({'measurement': name, 'tags': tags, 'fields': fields})
|
||||||
return ret
|
return ret
|
||||||
|
@ -147,8 +147,7 @@ class Export(GlancesExport):
|
|||||||
if k in fields:
|
if k in fields:
|
||||||
tags[k] = str(fields[k])
|
tags[k] = str(fields[k])
|
||||||
# Remove it from the field list (can not be a field and a tag)
|
# Remove it from the field list (can not be a field and a tag)
|
||||||
if k in fields:
|
fields.pop(k)
|
||||||
fields.pop(fields[k])
|
|
||||||
# Add the measurement to the list
|
# Add the measurement to the list
|
||||||
ret.append({'measurement': name, 'tags': tags, 'fields': fields})
|
ret.append({'measurement': name, 'tags': tags, 'fields': fields})
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user