Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upIncorrect regex matching when querying using Prometheus 2 #2616
Comments
juliusv
assigned
fabxc
Apr 13, 2017
juliusv
added
area/stability
component/local storage
dev-2.0
kind/bug
labels
Apr 13, 2017
This comment has been minimized.
This comment has been minimized.
|
Hmm, this is a little weird. So I am running the dev-2.0 branch and have two jobs We don't handle lookups on |
This comment has been minimized.
This comment has been minimized.
|
@gouthamve Sorry for the delay, I was traveling. The data is coming from the Kubernetes service discovery which means it is collecting the data from each target. I verified that each target is getting scraped within 30 seconds (my scrape rate). I haven't set a staleness parameter, so I assume the default staleness of 5 minutes should be used. I ran the range query below and it behaved completely identical to when I left
Some more query datapoints:
But One last datapoint: |
This comment has been minimized.
This comment has been minimized.
|
Regexp matching must be broken in some basic way. I just tried If I query |
This comment has been minimized.
This comment has been minimized.
|
It's not just regexp matching but any non-equal matcher potentially. My my debugging, the matching itself works correctly but the final postings list of series IDs is missing some.
|
This comment has been minimized.
This comment has been minimized.
|
I'm currently testing v2 by letting it to the same thing as a number of our v1 servers. However, because of this bug, I cannot really compare the results: Many rules don't give the same result, and most dashboards are half-empty because of this. |
This comment has been minimized.
This comment has been minimized.
|
@fabxc can we get prometheus/tsdb#77 vendored into |
This comment has been minimized.
This comment has been minimized.
|
I also would be eager to get a new alpha build that I can hammer and report on. |
This comment has been minimized.
This comment has been minimized.
|
@checketts we'll probably wait just a bit more because. Some TODOs left before alpha.1. #2728 syncs in some recent fixes in the TSDB |
This comment has been minimized.
This comment has been minimized.
|
Would checking out the |
This comment has been minimized.
This comment has been minimized.
|
But @fabxc used to have latest |
This comment has been minimized.
This comment has been minimized.
|
Yea, basically this. If not on Linux addtionally |
This comment has been minimized.
This comment has been minimized.
|
I think this can be closed. Are you still seeing some lost series? |
This comment has been minimized.
This comment has been minimized.
|
@gouthamve Yes, in my case you can close it. Not certain about @beorn7 case though |
This comment has been minimized.
This comment has been minimized.
|
I think we have pretty clearly identified the source of this and fixed it. |
fabxc
closed this
Jun 8, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
checketts commentedApr 13, 2017
What did you do?
I ran the query
container_cpu_system_seconds_total{container_name=~"prometheus.*"}What did you expect to see?
I expected results with
container_name="prometheus"ANDcontainer_name="prometheus2"What did you see instead? Under which circumstances?
I have 2 Prometheus servers running side by side, monitoring the same targets. (Reproducing/Tracking @fabxc metrics listed in https://fabxc.org/blog/2017-04-10-writing-a-tsdb/)
My 1.5.2 server returns the expected (multiple) results. (6 in this case) but the v2.0.0-alpha.0 is only returning 4 of the values. It doesn't match against
prometheusorprometheus2, but it does match againstprometheus-load1,prometheus-dev3, etc.I verified that the missing ones are present and can filter against them directly with queries like
container_name=~"prometheus"(when I leave.*off the end)Environment
Prometheus v2.0.0-alpha.0 running on Kubernetes 1.5
Linux 4.4.0-53-generic x86_64