I am querying InfluxDB v0.12 using curl requests and I got a result that looks like:
my query :
curl -o influxdb.json -GET ‘http://localhost:8086/query?pretty=true’ --data-urlencode “db=cadvisor” --data-urlencode “q=SELECT max(value) FROM memory_usage WHERE container_name=‘cont’”
{
“results”: [
{
“series”: [
{
“name”: “memory_usage”,
“columns”: [
“time”,
“max”
],
“values”: [
[
“2017-07-24T10:43:37.844581595Z”,
872898560
]
]
}
]
}
]
}
How can I get the value 872898560 for example?