You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./thanos --version
thanos, version 0.18.0-rc.0 (branch: HEAD, revision: 0dde3ecf583fffec41fc6d2cdaef4f454095ddb5)
build user: root@50eca97f2102
build date: 20210106-17:41:00
go version: go1.15.6
platform: linux/amd64
./prometheus --version
prometheus, version 2.24.0 (branch: HEAD, revision: 02e92236a8bad3503ff5eec3e04ac205a3b8e4fe)
build user: root@d9f90f0b1f76
build date: 20210106-13:48:37
go version: go1.15.6
platform: linux/amd64
Object Storage Provider:
OSS
What happened:
query sum(increase(create_order{}[1d])) some time return {"status":"error","errorType":"execution","error":"vector cannot contain metrics with the same labelset"}
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
test1 func can reproduce
from gevent import monkey
monkey.patch_all(select=False)
import requests
import gevent
a = "/api/v1/query?query=" + 'sum(increase(create_order{}[1d]))'
url = "http://xxx:10902"
def req(r):
ret = requests.get(r)
print(ret.text)
def test1():
# failed
while True:
gevent.joinall([
gevent.spawn(req, url + a),
gevent.spawn(req, url + a),
])
def test2():
# ok
while True:
gevent.joinall([
gevent.spawn(req, url + a),
])
test1()
output
{"status":"success","data":{"resultType":"vector","result":[{"metric":{},"value":[1610960171.214,"111"]}]}}
{"status":"success","data":{"resultType":"vector","result":[{"metric":{},"value":[1610960171.214,"111"]}]}}
{"status":"error","errorType":"execution","error":"vector cannot contain metrics with the same labelset"}
{"status":"success","data":{"resultType":"vector","result":[{"metric":{},"value":[1610960175.325,"111"]}]}}
Thanos, Prometheus and Golang version used:
Object Storage Provider:
OSS
What happened:
query
sum(increase(create_order{}[1d]))
some time return {"status":"error","errorType":"execution","error":"vector cannot contain metrics with the same labelset"}What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
test1 func can reproduce
output
Full logs to relevant components:
no error in store and query debug log
Anything else we need to know:
The text was updated successfully, but these errors were encountered: