本镜像为Thanos的Docker分发版本,源自quay.io/thanos/thanos,是针对Prometheus的开源高可用、长期存储解决方案。该镜像旨在解决Prometheus原生存储的局限性,提供跨集群指标聚合、长期数据保留和高可用部署能力,可广泛应用于Kubernetes等容器化环境的监控系统。
1. 运行Thanos Query组件(指标查询聚合)
bashdocker run -d --name thanos-query \ -p 10902:10902 \ # HTTP查询端口 -p 19090:19090 \ # gRPC通信端口 quay.io/thanos/thanos query \ --http-address 0.0.0.0:10902 \ --grpc-address 0.0.0.0:19090 \ --store prometheus-instance-1:10901 \ # 连接Prometheus或Thanos Store端点 --store prometheus-instance-2:10901
2. 启动Thanos Store组件(对象存储代理)
bashdocker run -d --name thanos-store \ -v /path/to/objstore-config:/etc/thanos \ -p 10902:10902 \ -p 10901:10901 \ quay.io/thanos/thanos store \ --http-address 0.0.0.0:10902 \ --grpc-address 0.0.0.0:10901 \ --objstore.config-file /etc/thanos/objstore.yaml # 对象存储配置文件路径
对象存储配置文件示例(objstore.yaml):
yamltype: S3 config: bucket: "thanos-metrics-storage" endpoint: "s3.amazonaws.com" region: "us-west-2" access_key: "AKIAEXAMPLEKEY" secret_key: "secret-key-example" insecure: false
| 参数类别 | 常用参数示例 | 说明 |
|---|---|---|
| 网络配置 | --http-address 0.0.0.0:10902 | HTTP服务监听地址与端口 |
--grpc-address 0.0.0.0:10901 | gRPC服务监听地址与端口 | |
| 存储配置 | --objstore.config-file <path> | 对象存储配置文件路径 |
| 查询配置 | --store <endpoint> | 待聚合的Prometheus/Store组件端点 |
| 日志配置 | --log.level=info | 日志级别(debug/info/warn/error) |
| 认证配置 | --web.tls-cert-file <path> | TLS证书文件路径(可选,用于安全通信) |
该镜像可通过Kubernetes资源清单部署,建议配合Prometheus Operator使用。具体集成示例可参考https://github.com/SumoLogic/sumologic-kubernetes-collection%E9%A1%B9%E7%9B%AE%EF%BC%8C%E8%AF%A5%E9%A1%B9%E7%9B%AE%E6%8F%90%E4%BE%9B%E4%BA%86%E5%9C%A8Kubernetes%E7%8E%AF%E5%A2%83%E4%B8%AD%E9%9B%86%E6%88%90Thanos%E7%9A%84%E5%AE%8C%E6%95%B4%E9%85%8D%E7%BD%AE%E6%A8%A1%E6%9D%BF%EF%BC%8C%E5%8C%85%E6%8B%ACDeployment%E3%80%81Service%E3%80%81ConfigMap%E7%AD%89%E8%B5%84%E6%BA%90%E5%AE%9A%E4%B9%89%E3%80%82
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。



探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务