prometheus: Error sending samples to remote storage

Hi ,

Getting

Jan 24 15:15:51 prometheus prometheus: level=warn ts=2018-01-24T14:15:51.973934966Z 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"
  • prometheus.yaml
remote_read:
- url: http://localhost:9201/write
remote_write:
- url: http://localhost:9201/read
  • remote_stroage_adapter
/usr/sbin/remote_storage_adapter \
  -influxdb-url=http://domain.com:8086/ \
  -influxdb.database=db \
  -influxdb.retention-policy=autogen \
  -influxdb.username=user \
  -send-timeout=30s
  • influxdb
version: influxdb-1.4.2

# Influxdb 
influx 
auth  
CREATE DATABASE db; 
CREATE USER "user" with password 'psswd'; 
GRANT ALL ON db TO user; 
ALTER RETENTION POLICY "autogen" ON "db" DURATION 1d REPLICATION 1 SHARD DURATION 1d DEFAULT;
SHOW RETENTION POLICIES ON db;
#shown above retention

SHOW MEASUREMENTS;
# nothings is shown
  • Prometheus
version: 
[root@prometheus ~]# prometheus --version
prometheus, version 2.1.0 (branch: HEAD, revision: 85f23d82a045d103ea7f3c89a91fba4a93e6367a)
  build user:       root@6e784304d3ff
  build date:       20180119-12:01:23
  go version:       go1.9.2

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (5 by maintainers)

Most upvoted comments

I’ve not used it before, but this blog post has some details: https://www.influxdata.com/blog/influxdb-now-supports-prometheus-remote-read-write-natively/

Thanks for the report @kalinux. I think the remote storage adapters have rotted a little. As of influx v1.4.0 you don’t need the remote storage adapter IIRC, influx supports our remote read/write APIs natively.