Automic VaultAutomic Vault

brew

使用 Homebrew, apk, Nix 安装 thanos

查看 thanos 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install thanos

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add thanos

Alpine Linux edge package indexes · thanos · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#thanos

nixpkgs package indexes · pkgs/by-name/th/thanos/package.nix · 来源: api.github.com

概览

软件包摘要

Highly available Prometheus setup with long term storage capabilities

命令和别名

  • thanos

历史

项目历史与用法

Thanos is a CNCF Incubating project that extends Prometheus deployments with global querying, high availability, and long-term storage. The README describes it as a set of composable components that can be added on top of existing Prometheus installations.

项目历史

Thanos was created in the Prometheus ecosystem to address operational gaps that appear when teams run many Prometheus servers or need longer metric retention than local Prometheus storage comfortably provides. The CNCF incubation announcement says the project was created at Improbable to enable reliable monitoring on a global scale.

The project architecture follows a component model rather than a single monolith. Its README lists aims including a global query view, unlimited retention, and high availability; its getting-started documentation presents Thanos as a single binary whose features can be deployed independently for gradual rollout.

Thanos moved into CNCF governance as the cloud-native monitoring ecosystem matured. The CNCF project page records acceptance into CNCF on July 14, 2019 and movement to Incubating maturity on August 19, 2020.

采用历史

The official Thanos repository maintains an adopters list including organizations such as Aiven, Monzo, Adobe, eBay, Sauce Labs, Tencent, Wise, ByteDance, SoundCloud, and many others. This gives the project unusually visible enterprise adoption compared with small CLI-only formulae.

The Thanos documentation also records talks, user stories, and blog posts from 2018 onward, including an introductory 2018 post, 2019 user stories, and later KubeCon/CNCF-era talks. That official documentation trail shows the project moving from early Prometheus-at-scale experiments into a standard option for multi-cluster and long-retention metrics systems.

使用方式

Operators use the `thanos` binary to deploy components such as Sidecar, Query, Store, Receive, Rule, Compact, and Query Frontend. The getting-started guide explains that Thanos can be added gradually and can run in Kubernetes or more traditional environments.

The package is especially relevant to Prometheus users who need object-storage-backed historical metrics, deduplication across high-availability Prometheus pairs, global query views across clusters, and downsampling for older data.

为什么软件包爱好者会关心

For package nerds, Thanos is a case where a Homebrew formula is not just a developer convenience but a way to get the same operational binary used in Kubernetes and cloud-native production systems. The README notes that release tarballs are built for major platforms and that every commit to main builds container images.

Its package-manager footprint in the input spans Homebrew, Alpine, and Nix, while its primary distribution story remains GitHub releases and OCI images. That split reflects modern infrastructure tooling: package managers help local testing and ops workflows, while production often consumes containers or Kubernetes manifests.

时间线

  • 2018: Official docs list the introductory Thanos blog post and first Prometheus meetup slides.
  • 2019: CNCF accepts Thanos on July 14, according to the CNCF project page.
  • 2020: CNCF moves Thanos to Incubating on August 19.
  • 2024: The README notes ThanosCon as a KubeCon Europe co-located event.

Related projects

  • Thanos is directly tied to Prometheus and its storage format, and the README positions it as an add-on to existing Prometheus deployments.
  • The getting-started documentation points to prometheus-operator, kube-thanos, and community Helm charts as common Kubernetes deployment paths.

来源

  • CNCF incubation announcement: https://www.cncf.io/blog/2020/08/19/toc-approves-thanos-from-sandbox-to-incubation/
  • CNCF project page: https://www.cncf.io/projects/thanos/
  • Official README: https://github.com/thanos-io/thanos#readme
  • Official adopters list: https://github.com/thanos-io/thanos/blob/main/website/data/adopters.yml
  • Official docs: https://thanos.io/tip/thanos/getting-started.md

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
thanoscli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.42.2
管理器更新时间2026-07-16
本地数据OK
上游当前
检测到的最新版本v0.42.2

https://github.com/thanos-io/thanos

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:thanos
版本0.42.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/thanos
主页https://thanos.io
仓库https://github.com/thanos-io/thanos
上游文档https://github.com/thanos-io/thanos#readme
许可证Apache-2.0
源码归档https://github.com/thanos-io/thanos/archive/refs/tags/v0.42.2.tar.gz
最后更新2026-07-16T21:29:09Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namethanos
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

thanos

nix profile install nixpkgs#thanos
  • normalized package name match
  • 匹配方式:Thanos
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/th/thanos/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

thanos 0.31.0-r23

Highly available Prometheus setup with long term storage capabilities. CNCF Sandbox project.

https://github.com/thanos-io/thanos

sudo apk add thanos
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: thanos
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Thanos
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: thanos from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

thanos-openrc 0.31.0-r23

Highly available Prometheus setup with long term storage capabilities. CNCF Sandbox project. (OpenRC init scripts)

https://github.com/thanos-io/thanos

sudo apk add thanos-openrc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: thanos
  • normalized package name match
  • 匹配方式:Thanos
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: thanos-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment