@RequestMapping(value = "/test", consumes = "application/x-protobuf", method = RequestMethod.POST) public void getMetric(@RequestBody Remote.WriteRequest metric) WARN[0246] Error sending 2 samples to remote storage: server returned HTTP status 400 : {"timestamp":1502294355482,"status":400,"error":"Bad Request","exception":"org.springframework.http.converter.HttpMessageNotReadableException","message":"Could not read Protobuf message: Protocol message tag had invalid wire type.; nested exception is com. source="queue_manager.go:500"
WARN[0270] Error sending 1 samples to remote storage: server returned HTTP status 400 : {"timestamp":1502294379548,"status":400,"error":"Bad Request","exception":"org.springframework.http.converter.HttpMessageNotReadableException","message":"Could not read Protobuf message: Protocol message end-group tag did not match expected tag.; nested ex source="queue_manager.go:500"
Also if we use simple java util Object as RequestBody those errors also occur. So only String RequestBody works but we don't know what to do with that encoded string..
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/62171a3e-01dc-45a2-9511-01d77a74baad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Probably not the most elegant solution, but it works.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a0914830-03d8-4b8a-97f2-89448aba3bbd%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/cd6d7a11-9a9e-436e-93a9-9631a387ee68%40googlegroups.com.