mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-06 15:12:11 -04:00
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> |
||
|---|---|---|
| .. | ||
| interface.go | ||
| interface_test.go | ||
| openmetricslex.l | ||
| openmetricslex.l.go | ||
| openmetricsparse.go | ||
| openmetricsparse_test.go | ||
| promlex.l | ||
| promlex.l.go | ||
| promparse.go | ||
| promparse_test.go | ||
| promtestdata.nometa.txt | ||
| promtestdata.txt | ||
| 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