crate/cratedb-prometheus-adapter

which prometheus version should i use to work with crate_adapter and crateDB_3.1.0?

gaoshuibo opened this issue · 1 comments

I'm doing prometheus monitoring using remote storage, I trid to use prometheus-2.3.2.linux-amd64 and prometheus-2.0.0.linux-amd64 to work with crateDB 3.1.0 through crate_adapter, but prometheus failed to send metrics to crateDB, prometheus error logs as flower:

level=warn ts=2018-08-22T09:16:51.688031673Z caller=queue_manager.go:485 component=remote msg="Error sending samples to remote storage" count=100 err="server returned HTTP status 400 Bad Request: proto: wrong wireType = 2 for field StartTimestampMs"
level=warn ts=2018-08-22T09:16:51.688456868Z caller=queue_manager.go:485 component=remote msg="Error sending samples to remote storage" count=100 err="server returned HTTP status 400 Bad Request: proto: wrong wireType = 2 for field StartTimestampMs"
level=warn ts=2018-08-22T09:16:51.688891156Z caller=queue_manager.go:485 component=remote msg="Error sending samples to remote storage" count=100 err="server returned HTTP status 400 Bad Request: proto: wrong wireType = 2 for field StartTimestampMs"
level=warn ts=2018-08-22T09:16:51.689299348Z caller=queue_manager.go:485 component=remote msg="Error sending samples to remote storage" count=100 err="server returned HTTP status 400 Bad Request: proto: wrong wireType = 2 for field StartTimestampMs"
level=warn ts=2018-08-22T09:16:51.689644825Z caller=queue_manager.go:485 component=remote msg="Error sending samples to remote storage" count=100 err="server returned HTTP status 400 Bad Request: proto: wrong wireType = 2 for field StartTimestampMs"

and crate_adapter error logs:
time="2018-08-22T17:16:51+08:00" level=error msg="Failed to unmarshal body." err="proto: wrong wireType = 2 for field StartTimestampMs" source="server.go:235"
time="2018-08-22T17:16:51+08:00" level=error msg="Failed to unmarshal body." err="proto: wrong wireType = 2 for field StartTimestampMs" source="server.go:235"
time="2018-08-22T17:16:51+08:00" level=error msg="Failed to unmarshal body." err="proto: wrong wireType = 2 for field StartTimestampMs" source="server.go:235"
time="2018-08-22T17:16:51+08:00" level=error msg="Failed to unmarshal body." err="proto: wrong wireType = 2 for field StartTimestampMs" source="server.go:235"
time="2018-08-22T17:16:51+08:00" level=error msg="Failed to unmarshal body." err="proto: wrong wireType = 2 for field StartTimestampMs" source="server.go:235"
time="2018-08-22T17:16:51+08:00" level=error msg="Failed to unmarshal body." err="proto: wrong wireType = 2 for field StartTimestampMs" source="server.go:235"
time="2018-08-22T17:16:55+08:00" level=error msg="Failed to unmarshal body." err="proto: wrong wireType = 2 for field StartTimestampMs" source="server.go:235"

am i using the worng version of prometheus or something else ?

wrong config :
remote_write: