Comments (6)
Looks like this is still relevant? Can I take this?
from tsdb.
Sure, that would be great.
I think we converged towards adding new matcher types for sets and prefixes to prometheus/tsdb and then add separate functions to actually disassemble a regex and creating set and prefix matcher types out of those.
from tsdb.
So I just got to this... I can see the first part (direct posting lookup for equal matcher) is done. What are "set matchers" supposed to be exactly? Can you point me to the discussion?
Also I assume you mean some simple heuristic for regex prefix extraction? e.g. only optimize regex or the form "^abc" or something like that? I tried to read up on regex index search optimization but couldn't find much info...
from tsdb.
Hey, so it was decided that we should not add optimisations to the regexp-matcher but rather create new matchers and have prometheus parse its queries and send in the correct matcher kind into tsdb. For example if ^abc
was given to prometheus, then it will send in NotMatcher(abc)
.
So one thing you can do is to add a prefix matcher like the Equal and Regexp matchers.
For example, the prefix matcher with the prefix: abc
will match the strings abcd
, abccc
and so on.
Once this matcher is added, we can actually optimise the queries that are like {path~="/users"}
in prometheus to detect prefix matching and send it down to tsdb.
Let me know if anything is unclear or if you have any doubts while implementing.
from tsdb.
Should this still be open? Looks like the prefix matcher was added.
from tsdb.
Yes I think can be closed now.
from tsdb.
Related Issues (20)
- Memory issues on short block sizes HOT 23
- Flaky test with the new live reader HOT 3
- TSDB CLI tool doesn't work on live Prometheus HOT 1
- Snapshots with head block are unsafe HOT 7
- Support selectors for LabelNames and LabelValues HOT 2
- double metric HOT 4
- selectOverlappingDirs bug that misses some directories HOT 1
- Why do Max and Minn have opposite definitions? HOT 1
- Improve renameFile function HOT 5
- Cleanup temp file if rename/replace failed HOT 1
- "unknown series references" after clean shutdown HOT 47
- Log storage filesystem type at startup HOT 4
- Investigate WAL compression HOT 1
- Prometheus restart very slowly when the size of data folder is huge HOT 18
- prometheus_tsdb_compactions_failed_total metric not incremented when compaction fails HOT 1
- Unstable: Not all data returned after write HOT 2
- How best to write blocks when bulk importing? HOT 6
- Cannot run more than one wal.LiveReader with metrics
- Proposal to compute actual size of files on filesystems with compression HOT 4
- docs outdated on Label offset Table? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsdb.