prometheus/pkg/textparse
Julien Pivotto 40b66d29ff
OpenMetrics parse: avoid setting prev token (#6781)
We can avoid setting a prev token in the OM parser. The previous
coundition that checked for prev was unreacheable.

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-02-07 07:33:26 +00:00
..
README.md Add a README.md to textparse package about how to update lexers. 2019-10-23 23:55:42 -07:00
interface.go Add exemplar support to the openmetrics parser (#6292) 2019-11-19 09:33:30 +00:00
openmetricslex.l Add exemplar support to the openmetrics parser (#6292) 2019-11-19 09:33:30 +00:00
openmetricslex.l.go Add exemplar support to the openmetrics parser (#6292) 2019-11-19 09:33:30 +00:00
openmetricsparse.go OpenMetrics parse: avoid setting prev token (#6781) 2020-02-07 07:33:26 +00:00
openmetricsparse_test.go OpenMetrics: force input to end with # EOF (#6505) 2019-12-24 08:48:28 +00:00
promlex.l Prepare for multiple text formats 2018-10-18 13:58:00 +01:00
promlex.l.go Add exemplar support to the openmetrics parser (#6292) 2019-11-19 09:33:30 +00:00
promparse.go Add exemplar support to the openmetrics parser (#6292) 2019-11-19 09:33:30 +00:00
promparse_test.go Update to disallow new Go 1.13 float formats. (#5984) 2019-09-05 15:18:18 +01:00
promtestdata.nometa.txt Add an OpenMetrics parser. 2018-10-18 13:58:00 +01:00
promtestdata.txt Add an OpenMetrics parser. 2018-10-18 13:58:00 +01:00

README.md

Making changes to textparse lexers

In the rare case that you need to update the textparse lexers, edit promlex.l or openmetricslex.l and then run the following command: golex -o=promlex.l.go promlex.l

Note that you need golex installed: go get -u modernc.org/golex