# 使用 Homebrew 安装 mimirtool

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mimirtool
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:mimirtool
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mimirtool>
- **版本:** 3.1.4
- **来源摘要:** CLI for interacting with Grafana Mimir
- **主页:** <https://grafana.com/docs/mimir/latest/operators-guide/tools/mimirtool/>
- **仓库:** <https://github.com/grafana/mimir>
- **上游文档:** <https://grafana.com/docs/mimir/latest/operators-guide/tools/mimirtool/>
- **许可证:** AGPL-3.0-only
- **源码归档:** <https://github.com/grafana/mimir.git>
- **最后更新:** 2026-07-22T06:36:52Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mimirtool (cli)
- mimirtool (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.1.4
- 管理器更新时间: 2026-07-22
- 本地数据: OK
- 上游仓库: https://github.com/grafana/mimir
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mimirtool
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Documentation packages](https://pkg.so/zh-hans/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [logcli](https://pkg.so/zh-hans/brew/logcli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, grafana, observability.
- [gcx](https://pkg.so/zh-hans/brew/gcx/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, grafana, observability.
- [newrelic-infra-agent](https://pkg.so/zh-hans/brew/newrelic-infra-agent/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability.
- [prometheus](https://pkg.so/zh-hans/brew/prometheus/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, metrics, observability.
- [thanos](https://pkg.so/zh-hans/brew/thanos/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, metrics, prometheus.
- [grizzly](https://pkg.so/zh-hans/brew/grizzly/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, grafana, observability.
- [sloth-cli](https://pkg.so/zh-hans/brew/sloth-cli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability, prometheus.
- [linkerd](https://pkg.so/zh-hans/brew/linkerd/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
