Bug: getting err-mimir-missing-metric-name when __name__
label is present in the labels list and has the metric name as the value
#10309
Labels
bug
Something isn't working
What is the bug?
We are receiving the
received series has no metric name (err-mimir-missing-metric-name)
error when trying to use remote-write endpoint. There are several steps where things could go wrong, we're trying to provide as many details as we can.How to reproduce it?
https://github.com/grafana/mimir/blob/main/pkg/mimirpb/mimir.proto
https://github.com/gogo/protobuf/blob/master/gogoproto/gogo.proto
https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto
--js_out
flagTo be able to do that we had to install
protoc-gen-js
vianpm install -g protoc-gen-js
, the command that was used is as follows:protoc --js_out=import_style=commonjs,binary:. mimir.proto gogo.proto descriptor.proto
The command generates CommonJS modules successfully.
WriteRequest
and other classes from compiledmimir_pb.js
file and construct the request object . We try to send a custom metric calledexample_metric
and are trying to attachuuid
andstatus
as labels.serializeBinary
methodPOST
request, add the following headers:What did you think would happen?
Mimir should accept sent payload as it seems to fully qualify the endpoint spec.
What was your environment?
libprotoc version is
3.21.12
OS
Ubuntu 24
NodeJS version
v18.20.5
Any additional context to share?
When debugging the sent object before sending to Mimir (protobuf-javascript provides .toObject() method) it looks like this:
The text was updated successfully, but these errors were encountered: