# 使用 Homebrew 安装 cortex

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

## 安装

```sh
sudo av install brew:cortex
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cortex
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:cortex
- **软件包管理器:** Homebrew
- **版本:** 1.21.1
- **来源摘要:** Long term storage for Prometheus
- **主页:** <https://cortexmetrics.io/>
- **仓库:** <https://github.com/cortexproject/cortex>
- **最后更新:** 2026-07-25T14:20:51-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cortex (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.21.1
## 项目历史与用法

Cortex is a horizontally scalable, highly available, multi-tenant long-term storage system for Prometheus and OpenTelemetry metrics. It is normally deployed as a server-side observability backend rather than used as a local CLI tool.

### 项目历史

The official Cortex documentation states that the project was started by Tom Wilkie and Prometheus co-founder Julius Volz in June 2016. The public GitHub repository was created later in 2016, and the README describes a system built for scale, high availability, multi-tenancy, and long-term object storage.

### 采用历史

Cortex's adoption history is tied to Prometheus remote write and cloud-native observability. The official documentation's further-reading section traces public talks from PromCon 2016 through KubeCon sessions, and lists managed or production-oriented material from Grafana Labs, AWS, CNCF, and other operators.

### 使用方式

Operators deploy Cortex as single-binary or microservices components. Prometheus instances push samples via remote write, while Cortex distributes, ingests, stores, and queries data across long-term storage backends such as S3, GCS, Swift, and Azure.

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

Cortex matters to package and infrastructure maintainers because it turns Prometheus from a single-node time-series database into a multi-tenant distributed system. Packaging is only a small part of the story; configuration, Kubernetes deployment, storage backends, ring state, and service topology dominate real-world distribution.

### 时间线

- 2016: Cortex project started in June by Tom Wilkie and Julius Volz.
- 2016: Public GitHub repository created in September.
- 2018: Official documentation lists CNCF and KubeCon materials presenting Cortex as scalable Prometheus.
- 2026: Official GitHub releases include the v1.21.x series.

### Related projects

- Related projects include Prometheus, OpenTelemetry Metrics, Thanos, Grafana Mimir, Alertmanager, and cloud object stores used for long-term metrics storage.

### 来源

- <https://github.com/cortexproject/cortex>
- <https://raw.githubusercontent.com/cortexproject/cortex/master/README.md>
- <https://cortexmetrics.io/docs/>
- <https://cortexmetrics.io/docs/architecture/>
- <https://api.github.com/repos/cortexproject/cortex>
- <https://api.github.com/repos/cortexproject/cortex/releases>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Combined YAML source

View the package source record on GitHub. [combined/cortex.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cortex.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
