代码拉取完成,页面将自动刷新
version: '3.7'
services:
prometheus-node2:
image: prom/prometheus:v2.31.0
container_name: prometheus-node2
volumes:
- ./prometheus/node2/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/node2/data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.min-block-duration=1m'
- '--storage.tsdb.max-block-duration=1m'
- '--storage.tsdb.retention.time=5m'
ports:
- "9091:9090"
networks:
- net-prometheus2
thanos-sidecar2:
image: raspbernetes/thanos:v0.23.1
container_name: thanos-sidecar2
volumes:
- ./prometheus/node2/data:/var/prometheus
- ./thanos/bucket_config.yaml:/bucket_config.yaml
command:
- sidecar
- --tsdb.path=/var/prometheus
- --prometheus.url=http://prometheus-node2:9090
- --objstore.config-file=/bucket_config.yaml
- --http-address=0.0.0.0:19191
- --grpc-address=0.0.0.0:19090
ports:
- "29191:19191"
- "29090:19090"
networks:
- net-prometheus2
depends_on:
- prometheus-node2
networks:
net-prometheus2:
driver: bridge
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。