添加tap 2 influxdb脚本
This commit is contained in:
parent
9bc68a58f4
commit
d1b1039feb
@ -54,11 +54,13 @@ class TAP2Influx:
|
||||
body.append(temp)
|
||||
except Exception:
|
||||
log.error(f"split data failed ,{line}", exc_info=True)
|
||||
try:
|
||||
print(body)
|
||||
self.influx.write_points(body)
|
||||
except Exception:
|
||||
log.error(f"write 2 influx failed,data={body}", exc_info=True)
|
||||
try:
|
||||
print(body)
|
||||
self.influx.write_points(body)
|
||||
except Exception:
|
||||
log.error(f"write 2 influx failed,data={body}", exc_info=True)
|
||||
else:
|
||||
print(f"sql={sql}")
|
||||
|
||||
|
||||
def run(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user