prometheus/pkg
Cyril Tovena c751cfbfce
Improve findSetMatches to support concatenation.
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>
2021-10-05 13:43:41 +02:00
..
exemplar Add Exemplar Remote Write support (#8296) 2021-05-06 13:53:52 -07:00
gate Fix exported function comments (#6002) 2019-09-10 14:45:09 +01:00
labels Improve findSetMatches to support concatenation. 2021-10-05 13:43:41 +02:00
logging Switched to go-kit/log 2021-06-11 12:28:36 -04:00
modtimevfs *: check that assets are up-to-date (#4731) 2018-11-09 11:31:36 +01:00
pool Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
relabel Check relabel action at yaml unmarshal stage (#9224) 2021-08-31 17:52:57 +02:00
rulefmt Limit number of alerts or series produced by a rule (#9260) 2021-09-15 09:48:26 +02:00
runtime Add new Go build tags. 2021-08-27 10:24:14 +02:00
textparse Create less garbage when parsing metrics (#9299) 2021-09-08 13:39:21 +05:30
timestamp '@ <timestamp>' modifier (#8121) 2021-01-20 16:27:39 +05:30
value Fix spelling/typos (#4921) 2018-11-27 17:44:29 +01:00