observatorium / thanos-receive-controller

Kubernetes controller to automatically configure Thanos receive hashrings
Apache License 2.0
94 stars 45 forks source link

Got receive error #74

Closed alanmoment closed 3 years ago

alanmoment commented 3 years ago

I got this error from receive. How can I solve it?

level=error ts=2021-04-15T07:31:53.789289648Z caller=handler.go:331 component=receive component=receive-handler err="forwarding request to endpoint http://receive-dev.thanos.svc.cluster.local:19291/api/v1/receive: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial tcp: address http://receive-dev.thanos.svc.cluster.local:19291/api/v1/receive: too many colons in address\"" msg="internal server error"

The endpoints in hashring.json needs protocol ? ref: https://github.com/dsayan154/thanos-receiver-demo

The generate hashring.json content is

apiVersion: v1
data:
  hashrings.json: '[{"hashring":"receive-dev","tenants":["receive-dev"],"endpoints":["http://receive-dev.thanos.svc.cluster.local:19291/api/v1/receive"]}]'
kind: ConfigMap
...
alanmoment commented 3 years ago

When I use quay.io/observatorium/thanos-receive-controller:latest problem is solved