Thanos是一套可组合组件,用于构建高可用、无限存储容量的指标系统,可无缝集成现有Prometheus部署,高效利用对象存储访问大量指标数据。
16 次收藏下载次数: 0状态:社区镜像维护者:improbable仓库类型:镜像最近更新:
Thanos镜像说明(已弃用)
镜像概述
本镜像(improbable/thanos)已被弃用,建议使用官方镜像:https://quay.io/repository/thanos/thanos 或 https://hub.docker.com/r/thanosio/thanos。Thanos是一组组件集合,可组合成具有无限存储容量的高可用指标系统,能无缝叠加到现有Prometheus部署之上。
核心功能
- 高可用性:构建无单点故障的可靠指标系统。
- 无限存储:通过对象存储(如S3、GCS)实现长期指标存储,突破Prometheus本地存储限制。
- 无缝集成:兼容Prometheus 2.0存储格式,无需大幅修改现有配置即可集成。
- 高效访问:优化对象存储中大规模指标数据的查询性能。
使用场景
- 需要长期保存Prometheus监控指标的场景。
- 构建企业级高可用监控系统,确保服务不中断。
- 处理大规模指标数据,需扩展存储能力的场景。
配置说明
参考官方镜像文档:https://thanos.io/,以下为官方镜像部署示例:
Docker Run示例(Sidecar组件)
bashdocker run -d --name thanos-sidecar \ -v /path/to/prometheus/data:/prometheus \ -v /path/to/thanos/config:/etc/thanos \ docker.xuanyuan.run/thanosio/thanos:latest \ sidecar \ --prometheus.url=http://prometheus:9090 \ --tsdb.path=/prometheus \ --objstore.config-file=/etc/thanos/object-store.yaml
Docker Compose示例(简化版)
yamlversion: '3' services: thanos-sidecar: image: thanosio/thanos:latest volumes: - ./prometheus-data:/prometheus - ./thanos-config:/etc/thanos command: - sidecar - --prometheus.url=[***] - --tsdb.path=/prometheus - --objstore.config-file=/etc/thanos/object-store.yaml depends_on: - prometheus prometheus: image: prom/prometheus:latest volumes: - ./prometheus-config:/etc/prometheus - ./prometheus-data:/prometheus command: - --config.file=/etc/prometheus/prometheus.yml - --storage.tsdb.path=/prometheus
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
docker pull improbable/thanos:<标签>
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务