Skip to content

Api: Verify that at every matcher in api/v1/series is not empty#8288

Merged
bwplotka merged 1 commit intoprometheus:masterfrom
roidelapluie:matcher
Dec 15, 2020
Merged

Api: Verify that at every matcher in api/v1/series is not empty#8288
bwplotka merged 1 commit intoprometheus:masterfrom
roidelapluie:matcher

Conversation

@roidelapluie
Copy link
Copy Markdown
Member

Fixed #8286

Signed-off-by: Julien Pivotto [email protected]

@brian-brazil
Copy link
Copy Markdown
Contributor

It might be better to do this down in TSDB, so that we don't have to duplicate it every time we add matchers to an API endpoint.

@roidelapluie
Copy link
Copy Markdown
Member Author

We can have it in TSDB, but I think we should keep it in PromQL too, to avoid asking everything to remote_read. WDYT?

@roidelapluie
Copy link
Copy Markdown
Member Author

Or once in TSDB and one in remote read client.

@brian-brazil
Copy link
Copy Markdown
Contributor

Failing fast for PromQL like we currently do makes sense I think, but let's not end up duplicating this N times in the API code.

Copy link
Copy Markdown
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Well we could wrap it in parseMatchers function and that's it. Not sure if baking this in TSDB makes sense.

@bwplotka
Copy link
Copy Markdown
Member

Thanks!

@bwplotka bwplotka merged commit 8dc53c2 into prometheus:master Dec 15, 2020
@brian-brazil
Copy link
Copy Markdown
Contributor

The above discussion was not finished, this should not have been merged yet. The standing procedure is also that -team members merge their own PRs.

@bwplotka
Copy link
Copy Markdown
Member

Sorry, I did not see the discussion being still pending. It was quite trivial change to me and it looked like the discussion was about the future step. Sorry for premature merge!

fcddk pushed a commit to fcddk/prometheus that referenced this pull request Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[API] api/v1/series with only non-empty matcher killing the memory

3 participants