prometheus/pkg/textparse
Callum Styan 54e3fc82f1 Add a README.md to textparse package about how to update lexers.
Signed-off-by: Callum Styan <callumstyan@gmail.com>
2019-10-23 23:55:42 -07: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 Expand OM to OpenMetrics 2018-10-18 14:16:41 +01:00
openmetricslex.l Expand OM to OpenMetrics 2018-10-18 14:16:41 +01:00
openmetricslex.l.go refine error handling in prometheus (#5388) 2019-03-26 00:01:12 +01:00
openmetricsparse.go Fix exported function comments (#6002) 2019-09-10 14:45:09 +01:00
openmetricsparse_test.go Update to disallow new Go 1.13 float formats. (#5984) 2019-09-05 15:18:18 +01:00
promlex.l Prepare for multiple text formats 2018-10-18 13:58:00 +01:00
promlex.l.go refine error handling in prometheus (#5388) 2019-03-26 00:01:12 +01:00
promparse.go Fix exported function comments (#6002) 2019-09-10 14:45:09 +01: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