k8s-research-monitoring/docker/thanos/compose.yaml

60 lines
1.5 KiB
YAML

networks:
default:
name: eigen-monitoring
external: true
services:
thanos-query:
image: thanosio/thanos:v0.36.1
command:
- query
- --http-address=:19192
- --grpc-address=:19092
- --endpoint=thanos-store:19090
- --endpoint=thanos-receiver:10907
#- --query.auto-downsampling
#- --query.max-concurrent-select=10
#- --query.max-concurrent=50
#- --query.timeout=1440m
#- --query.partial-response
thanos-store:
image: thanosio/thanos:v0.36.1
command:
- store
- --data-dir=/data
- --objstore.config-file=/etc/thanos/bucket.yaml
- --http-address=:19191
- --grpc-address=:19090
volumes:
- ./.data/store:/data
- ./bucket.yaml:/etc/thanos/bucket.yaml
thanos-compactor:
image: thanosio/thanos:v0.36.1
command:
- compact
- --data-dir=/data
- --objstore.config-file=/etc/thanos/bucket.yaml
- --wait
- --wait-interval=5m
volumes:
- ./.data/compactor:/data
- ./bucket.yaml:/etc/thanos/bucket.yaml
thanos-receiver:
image: thanosio/thanos:v0.36.1
command:
- receive
- --grpc-address=:10907
- --http-address=:10909
- --tsdb.path=/data
- --receive.local-endpoint=127.0.0.1:10907
- --objstore.config-file=/etc/thanos/bucket.yaml
- --label=receive_instance_id="thanos-receiver-1"
- --remote-write.address=:10908
ports:
- "10908:10908"
volumes:
- ./.data/receiver:/data/default-tenant
- ./bucket.yaml:/etc/thanos/bucket.yaml