Labels not matched are given
kobtea opened this issue · comments
Hiroaki Kobayashi commented
environment: https://github.com/kobtea/iapetus/tree/0d52a78975d8ce929ada51c551d428d0b776dbdc/example/docker-compose
$ curl -s 'http://localhost:19090/api/v1/query_range?query=\{job="prometheus"\}&start=1535968260&end=1535969175&step=15' | jq .
{
"status": "success",
"data": {
"resultType": "matrix",
"result": []
}
}
iapetus_1 | level=debug ts=2018-09-03T10:31:56.5195797Z caller=proxy.go:81 request="://localhost:19090/api/v1/query_range?query={job=\"prometheus\"}&start=1535968260&end=1535969175&step=15"
iapetus_1 | level=debug ts=2018-09-03T10:31:56.5196187Z caller=proxy.go:82 backend="http://prometheus2:9090/api/v1/query_range?end=1535969175&query=_avg%7Bjob%3D%22prometheus%22%7D&start=1535968260&step=15"
iapetus_1 | level=info ts=2018-09-03T10:31:56.5196373Z caller=proxy.go:83 target=archive query="_avg{job=\"prometheus\"}" match[]=[] origin="query={job=\"prometheus\"}&start=1535968260&end=1535969175&step=15"
- expect query:
{job="prometheus"}
- but got:
_avg{job="prometheus"}
Hiroaki Kobayashi commented
Hiroaki Kobayashi commented