From 929ad74de6071958d5f933940255eb4a8fb52b4a Mon Sep 17 00:00:00 2001 From: Roman Khavronenko Date: Wed, 8 Jul 2020 12:18:41 +0100 Subject: [PATCH] lib/protoparser: fix metric name of unmarshal errors in promremotewrite (#607) The change fixes the typo in metric name `vm_protoparser_unmarshal_errors` to respect the naming standard. --- lib/protoparser/promremotewrite/streamparser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/protoparser/promremotewrite/streamparser.go b/lib/protoparser/promremotewrite/streamparser.go index 5f72681808..19e75d2e23 100644 --- a/lib/protoparser/promremotewrite/streamparser.go +++ b/lib/protoparser/promremotewrite/streamparser.go @@ -65,7 +65,7 @@ var ( readCalls = metrics.NewCounter(`vm_protoparser_read_calls_total{type="promremotewrite"}`) readErrors = metrics.NewCounter(`vm_protoparser_read_errors_total{type="promremotewrite"}`) rowsRead = metrics.NewCounter(`vm_protoparser_rows_read_total{type="promremotewrite"}`) - unmarshalErrors = metrics.NewCounter(`vm_protoparser_unmarshal_errors{type="promremotewrite"}`) + unmarshalErrors = metrics.NewCounter(`vm_protoparser_unmarshal_errors_total{type="promremotewrite"}`) ) func getPushCtx() *pushCtx {