Looks like it did ingest it but not sure how to fetch data

Maybe the better option might be using the rest api?
http://localhost:4242/api/query?start=1h-ago&m=sum:rate:proc.stat.cpu{host=foo,type=idle}
Please provide a sample rest api for fetching data?