mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-15 10:04:07 -08:00
c751cfbfce
This improves how we find `SetMatches` for regexp. Notably it allows to support concatenation such as `api_(v1|prom)_push` for which the resulting set matches are `api_v1_push` and `api_prom_push`. I had to support characters classes too since the syntax may try to optimize alternates with them. In the end the code is also more robust than the previous implementation relying on the stringyfied version of the regexp. This could be upstreamed later. Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com> |
||
---|---|---|
.. | ||
exemplar | ||
gate | ||
labels | ||
logging | ||
modtimevfs | ||
pool | ||
relabel | ||
rulefmt | ||
runtime | ||
textparse | ||
timestamp | ||
value |