prometheus/model/textparse
György Krajcsovits 85d63ba861
refactor(nhcb): get rid of extra lastHistogramExponential state
and make it a regular state of inhibiting NHCB conversion.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-06-11 20:06:38 +02:00
..
testdata
README.md
benchmark_test.go
interface.go
interface_test.go
nhcbparse.go refactor(nhcb): get rid of extra lastHistogramExponential state 2025-06-11 20:06:38 +02:00
nhcbparse_test.go fix(nhcb): do not loose NHCB after exponential with different labels 2025-06-11 19:48:56 +02:00
openmetricslex.l
openmetricslex.l.go
openmetricsparse.go fix(model/textparse): Labels(): copy the input to avoid dangling references 2025-05-23 11:03:48 +02:00
openmetricsparse_test.go
promlex.l
promlex.l.go
promparse.go fix(model/textparse): Labels(): copy the input to avoid dangling references 2025-05-23 11:03:48 +02:00
promparse_test.go
protobufparse.go
protobufparse_test.go

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