prometheus/model/textparse
György Krajcsovits b3edeaad7d Rework with state functions and curr+next
The idea is to load metrics into curr, but if we see a change in metric
name or labels we load them into next , return curr as detected and
continue from next.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2024-10-07 10:49:36 +02:00
..
interface.go Start implement promparse with the metric output instead of line output 2024-10-07 07:42:32 +02:00
interface_test.go Start implement promparse with the metric output instead of line output 2024-10-07 07:42:32 +02:00
openmetricslex.l UTF-8: Add support for parsing UTF8 metric and label names 2024-02-15 14:34:37 -05:00
openmetricslex.l.go UTF-8: Add support for parsing UTF8 metric and label names 2024-02-15 14:34:37 -05:00
openmetricsparse.go refac: make typeRequiresCT private 2024-09-20 21:56:19 +05:30
openmetricsparse_test.go textparse: Implement CreatedTimestamp() in openmetricsparse.go (#14356) 2024-08-08 12:35:35 +01:00
promlex.l UTF-8: Add support for parsing UTF8 metric and label names 2024-02-15 14:34:37 -05:00
promlex.l.go UTF-8: Add support for parsing UTF8 metric and label names 2024-02-15 14:34:37 -05:00
promparse.go Rework with state functions and curr+next 2024-10-07 10:49:36 +02:00
promparse_test.go Start implement promparse with the metric output instead of line output 2024-10-07 07:42:32 +02:00
promtestdata.nometa.txt Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
promtestdata.txt Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
protobufparse.go chore: Fix typos (#14868) 2024-09-10 22:32:03 +02:00
protobufparse_test.go [TESTS] Add second native histogram with exemplars in TestProtobufParse 2024-09-02 16:43:50 +01:00
README.md Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00

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