I am using the REST API of InfluxDB
curl -s -XPOST -G influxdb_url:8086/query?pretty=true --data-urlencode "db=metrics" --data-urlencode "q=SHOW MEASUREMENTS WITH MEASUREMENT=~/a.b-c*/"
to retrieve the measurements available
{
"results": [
{
"statement_id": 0,
"series": [
{
"name": "measurements",
"columns": [
"name"
],
"values": [
[
"a.b-c"
],
[
"a.b-cd"
],
[
"a.b-cde"
],
[
"a.b-cdfg"
]
]
}
]
}
]
}
and then I trying to select all the data from one of them
curl -s -XPOST -G influxdb_url:8086/query?pretty=true --data-urlencode "db=metrics" --data-urlencode "q=SELECT * FROM "a.b-c""
and I am getting this error
{
"error": "error parsing query: found -, expected ; at line 1, char 18"
}
The exact same query works if I login the Influx instance
select * from "a.b-c"