You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/opt/sonarqube-exporter$ python3 sonarClient.py
before while loop...
count -----
1
begin export data...
com.g-dev.jve:G_PUS AWfG1stnhxQdf62aHguD
Traceback (most recent call last):
File "sonarClient.py", line 132, in<module>project.export_metrics()
File "sonarClient.py", line 82, in export_metrics
influx_client.write_points(self._prepare_metrics())
File "/home/me/.local/lib/python3.4/site-packages/influxdb/client.py", line 490, in write_points
tags=tags, protocol=protocol)
File "/home/me/.local/lib/python3.4/site-packages/influxdb/client.py", line 551, in _write_points
protocol=protocol
File "/home/me/.local/lib/python3.4/site-packages/influxdb/client.py", line 327, in write
headers=headers
File "/home/me/.local/lib/python3.4/site-packages/influxdb/client.py", line 286, in request
raise InfluxDBClientError(response.content, response.status_code)
influxdb.exceptions.InfluxDBClientError: 400: {"error":"partial write: field type conflict: input field \"value\" on measurement \"violations\" is type float, already exists as type string dropped=35"}
and fix it simply by changing:
"value": float(metric['value'] if ('value'inmetric) else0)
to
"value": metric['value'] if ('value'inmetric) else0
Enjoy your day!
The text was updated successfully, but these errors were encountered:
I facing an issue:
and fix it simply by changing:
to
Enjoy your day!
The text was updated successfully, but these errors were encountered: