prometheus/model/textparse
György Krajcsovits bcdc33512d
chore: replace repeated string with constant
String "application/vnd.google.protobuf" to
mimeutil.GoogleProtobufMimeType

Follow up to #17112

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-09-03 10:14:02 +02:00
..
testdata textparse: Refactor benchmark testdata for all types. (#15998) 2025-02-10 12:26:18 +00:00
README.md
benchmark_test.go feature: type-and-unit-labels (PROM-39 implementation) (#16228) 2025-05-17 09:37:25 +00:00
interface.go chore: replace repeated string with constant 2025-09-03 10:14:02 +02:00
interface_test.go chore: replace repeated string with constant 2025-09-03 10:14:02 +02:00
nhcbparse.go refactor(nhcb): get rid of extra lastHistogramExponential state 2025-06-11 20:06:38 +02:00
nhcbparse_test.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
openmetricslex.l bugfix: allow quoted exemplar keys in openmetrics text format 2024-11-12 15:29:44 +00:00
openmetricslex.l.go bugfix: allow quoted exemplar keys in openmetrics text format 2024-11-12 15:29:44 +00:00
openmetricsparse.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
openmetricsparse_test.go feature: type-and-unit-labels (PROM-39 implementation) (#16228) 2025-05-17 09:37:25 +00: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 Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
promparse_test.go feature: type-and-unit-labels (PROM-39 implementation) (#16228) 2025-05-17 09:37:25 +00:00
protobufparse.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
protobufparse_test.go feature: type-and-unit-labels (PROM-39 implementation) (#16228) 2025-05-17 09:37:25 +00: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