shawn-sterling / graphios

A program to send nagios perf data to graphite (carbon) / statsd / librato / influxdb
289 stars 100 forks source link

influxdb has issues with backslash/ #124

Open steverweber opened 8 years ago

steverweber commented 8 years ago
Failed to send metrics to InfluxDB.                                 Status code: 400: {"error":"partial write:\nunable to parse 'AllFixedDiskDriveSpaces,host=src-voxco-sql1,check=C:\\ value=38.92 1473986586000000000': invalid tag format\nunable to parse 'AllFixedDiskDriveSpaces,host=src-voxco-sql1,check=F:\\ value=78.45 1473986586000000000': invalid tag format\nunable to parse 'AllFixedDiskDriveSpaces,host=src-voxco-sql1,check=G:\\ value=44.02 1473986586000000000': 

if i change the data "check=C:\" to check=C:// it works.

curl -i -u 'nagios:xxxxxxxxxx' -XPOST 'https://influxdb:8086/write?db=nagios&precision=ns' --data-binary "AllFixedDiskDriveSpaces,host=src-voxco-sql1,check=C:// value=38.92 1473986586000000000"