ahfuzhang

完整的错误如下:

level=debug ts=2021-08-16T09:07:43.412451Z caller=handler.go:355 component=receive component=receive-handler msg="failed to handle request" err="store locally for endpoint : conflict"

开始以为是 thanos receive 命令行中配置了receive.local-endpoint参数导致的,去掉参数仍然不行。


prometheus中的关键配置为:

# prometheus.yaml
remote_write:
  - url: "http://127.0.0.1:10908/api/v1/receive"

thanos receiver的启动命令行为:

thanos  receive \
    --tsdb.path "./20210816/" \
    --grpc-address 0.0.0.0:10907 \
    --http-address 0.0.0.0:10909 \
    --receive.replication-factor 1 \
    --label "receive_replica=\"0\"" \
    --label "receive_cluster=\"eu1\"" \
    --remote-write.address 0.0.0.0:10908 \
    --log.level=debug \
    --log.format=logfmt

分类:

技术点:

相关文章:

  • 2021-05-03
  • 2021-08-07
  • 2021-06-09
  • 2021-12-04
  • 2021-11-20
  • 2021-04-01
  • 2021-10-06
  • 2021-11-20
猜你喜欢
  • 2021-12-19
  • 2019-10-03
  • 2021-11-20
  • 2021-11-27
  • 2018-11-28
  • 2021-12-04
相关资源
相似解决方案