prometheus/model/textparse
Bryan Boreham 1f04899ae3 Update package model/textparse for new labels.Labels type
Parse metrics using labels.ScratchBuilder, so we reduce assumptions about
internals of Labels.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2022-12-19 15:22:09 +00:00
..
README.md
interface.go histograms: parse float histograms from proto definition (#11149) 2022-08-25 20:37:41 +05:30
interface_test.go Improve content-type error handling 2022-02-08 11:02:51 +01:00
openmetricslex.l
openmetricslex.l.go refactor (package model): move from github.com/pkg/errors to 'errors' and 'fmt' packages (#10747) 2022-06-27 21:29:19 +02:00
openmetricsparse.go Update package model/textparse for new labels.Labels type 2022-12-19 15:22:09 +00:00
openmetricsparse_test.go Merge 'main' into sparsehistogram 2022-10-05 22:14:49 +02:00
promlex.l refactor (package model): move from github.com/pkg/errors to 'errors' and 'fmt' packages (#10747) 2022-06-27 21:29:19 +02:00
promlex.l.go refactor (package model): move from github.com/pkg/errors to 'errors' and 'fmt' packages (#10747) 2022-06-27 21:29:19 +02:00
promparse.go Update package model/textparse for new labels.Labels type 2022-12-19 15:22:09 +00:00
promparse_test.go benchmarks: SetBytes takes bytes per operation 2022-10-02 22:11:33 +02:00
promtestdata.nometa.txt
promtestdata.txt
protobufparse.go Update package model/textparse for new labels.Labels type 2022-12-19 15:22:09 +00:00
protobufparse_test.go histograms: parse float histograms from proto definition (#11149) 2022-08-25 20:37:41 +05:30

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