From 695b88dfa1f8fa179d45ed383a84b7fdec9848f4 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Sat, 17 Sep 2016 14:42:59 +0200 Subject: [PATCH] Remove last traces of JSON exposition protocol --- expfmt/bench_test.go | 4 ---- expfmt/expfmt.go | 3 --- 2 files changed, 7 deletions(-) diff --git a/expfmt/bench_test.go b/expfmt/bench_test.go index 92b16a02..e539bfc1 100644 --- a/expfmt/bench_test.go +++ b/expfmt/bench_test.go @@ -42,10 +42,6 @@ var parser TextParser // the difference becomes less relevant, only ~4x. // // The test data contains 248 samples. -// -// BenchmarkProcessor002ParseOnly in the extraction package is not quite -// comparable to the benchmarks here, but it gives an idea: JSON parsing is even -// slower than text parsing and needs a comparable amount of allocs. // BenchmarkParseText benchmarks the parsing of a text-format scrape into metric // family DTOs. diff --git a/expfmt/expfmt.go b/expfmt/expfmt.go index 366fbde9..fae10f6e 100644 --- a/expfmt/expfmt.go +++ b/expfmt/expfmt.go @@ -29,9 +29,6 @@ const ( FmtProtoDelim Format = ProtoFmt + ` encoding=delimited` FmtProtoText Format = ProtoFmt + ` encoding=text` FmtProtoCompact Format = ProtoFmt + ` encoding=compact-text` - - // fmtJSON2 is hidden as it is deprecated. - fmtJSON2 Format = `application/json; version=0.0.2` ) const (