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