RichiH / prometheus_scrape_cache

1 stars 0 forks source link

Positive match, not negative match, for metric lines #6

Open RichiH opened 7 years ago

RichiH commented 7 years ago

https://regex101.com/r/kvSpG0/4 - not yet perfect.

RichiH commented 7 years ago

Counter-point: I'd rather mess up non-Prometheus data than not apply needed timestamps.

Maybe check once that at least one line is compliant with the exposition format and then blindly apply to every line which is not a comment?

RichiH commented 7 years ago

https://regex101.com/r/kvSpG0/7 is even worse; I might stick with "ignore comments" and keep the rest as is.