# 使用 Homebrew 安装 mimirtool

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

## 安装

```sh
sudo av install brew:mimirtool
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mimirtool
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:mimirtool
- **软件包管理器:** Homebrew
- **版本:** 3.1.4
- **来源摘要:** CLI for interacting with Grafana Mimir
- **主页:** <https://grafana.com/docs/mimir/latest/operators-guide/tools/mimirtool/>
- **仓库:** <https://github.com/grafana/mimir>
- **最后更新:** 2026-07-22T06:36:52Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mimirtool (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

mimirtool is the operator and tenant CLI shipped from the Grafana Mimir repository. Grafana Mimir itself was announced by Grafana Labs on March 31, 2022 as an open-source time-series database for Prometheus-compatible metrics, built from lessons learned running Grafana Enterprise Metrics and Grafana Cloud Metrics at large scale. The announcement and Grafana's Mimir OSS page describe the project as started at Grafana Labs, AGPLv3-licensed, and aimed at highly scalable, highly available, multi-tenant long-term metric storage.

### 项目历史

Mimirtool exists because running a Mimir or Grafana Cloud Metrics deployment involves more than querying time series. The official Mimirtool docs describe it as a command-line tool for common tasks involving Grafana Mimir or Grafana Cloud Metrics, interacting with user-facing APIs and backend storage. Its commands cover Alertmanager configuration, Prometheus rule validation and upload, remote-read export, metric-usage analysis from Grafana dashboards and rules, object-storage bucket validation, ACL header generation, Cortex-to-Mimir config conversion, TSDB block backfill, and partition-ring operations.

### 采用历史

In practice, operators configure the CLI with `MIMIR_ADDRESS`, `MIMIR_API_USER`, `MIMIR_API_KEY`, `MIMIR_TENANT_ID`, and TLS-related flags or environment variables, then use it to automate rule management, migration checks, storage validation, and backfills. Grafana Cloud documentation specifically uses `mimirtool` to upload alert and recording rules to Grafana Cloud Metrics and Alerts.

### 使用方式

Its package niche is narrow and infrastructure-focused: Homebrew distributes the standalone `mimirtool` executable, while upstream also publishes release binaries from the Grafana Mimir GitHub releases. It is best understood as the administrative companion to Grafana Mimir, not a general observability client.

### 来源

- <https://formulae.brew.sh/formula/mimirtool>
- <https://github.com/grafana/mimir>
- <https://grafana.com/blog/announcing-grafana-mimir/>
- <https://grafana.com/docs/grafana-cloud/alerting-and-irm/alerting/set-up/provision-alerting-resources/use-mimirtool/>
- <https://grafana.com/docs/mimir/latest/>
- <https://grafana.com/docs/mimir/latest/manage/tools/mimirtool/>
- <https://grafana.com/oss/mimir/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

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


## 来源

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