I’ve made a bit of a error while experimenting with InfluxDB and Telegraf’s csv file and have managed to create a bunch of measurements with numeric names. Which I’m unable to remove with the drop command
> drop measurement 99983224
ERR: error parsing query: found 99983224, expected identifier at line 1, char 18`
I’ve also tried
> drop measurement "99983224"
ERR: error parsing query: found 99983224, expected identifier at line 1, char 18`
I have no idea what has happened over night, except we restarted our servers, and now the drop measurement command works as you demo’d.
I piped the list of numerical names into a file and then passed that into this little bash script that executed a influx command to drop the metric.
#!/usr/bin/env bash
for met in $(cat "${1}"); do
echo $met
./monitoring/influxdb/influx -port 8086 -database="telegraf" -execute "drop measurement \"${met}\""
done