Open RichiH opened 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?
https://regex101.com/r/kvSpG0/7 is even worse; I might stick with "ignore comments" and keep the rest as is.
https://regex101.com/r/kvSpG0/4 - not yet perfect.