# 使用 Homebrew, chocolatey, Nix 安装 metricbeat

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

## 安装

```sh
sudo av install brew:metricbeat
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install metricbeat
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#metricbeat
```

  证据: nixpkgs package indexes: metricbeat from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

### Windows

- Chocolatey (92%):

```sh
choco install metricbeat
```

  证据: Chocolatey community package catalog: metricbeat from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','maxima'

## 软件包事实

- **软件包键:** brew:metricbeat
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/metricbeat>
- **版本:** 9.5.0
- **来源摘要:** Collect metrics from your systems and services
- **主页:** <https://www.elastic.co/beats/metricbeat>
- **仓库:** <https://github.com/elastic/beats>
- **上游文档:** <https://www.elastic.co/beats/metricbeat>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/elastic/beats.git>
- **最后更新:** 2026-08-04T15:09:28Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- metricbeat (cli)
- metricbeat (别名)

## 构建依赖

- go
- mage

## 安装行为

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

## 版本和新鲜度

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

Metricbeat is one of Elastic's Beats, the lightweight data shippers used with Elasticsearch, Logstash, and Kibana. Elastic documentation defines it as a shipper installed on servers to collect operating-system and service metrics and send them to outputs such as Elasticsearch or Logstash; the Beats platform describes the broader family as small agents for moving operational data from many machines.

### 项目历史

Metricbeat entered the Elastic Stack 5.0 line as the successor to Topbeat. Elastic's 5.0.0 release material says Metricbeat replaced Topbeat as the primary metrics collection tool in the stack, preserving host and process resource statistics while adding modules for systems such as Apache, HAProxy, MongoDB, MySQL, Nginx, PostgreSQL, Redis, and ZooKeeper. A 5.0 alpha announcement introduced it as an extension of Topbeat for server-service metrics.

### 使用方式

In practice, Metricbeat is deployed as an agent on hosts, containers, or service nodes, with modules enabling metricsets for specific systems. It can send metrics directly to Elasticsearch or through Logstash, Redis, or Kafka, and it is often used to populate Elastic observability dashboards and stack monitoring indexes. In package-manager terms it is the metrics-focused Beat, adjacent to Filebeat for logs, Packetbeat for network data, Heartbeat for uptime, and Auditbeat for audit/security events.

### 来源

- <https://formulae.brew.sh/formula/metricbeat>
- <https://github.com/elastic/beats>
- <https://www.elastic.co/beats/>
- <https://www.elastic.co/blog/elastic-stack-5-0-0-released>
- <https://www.elastic.co/blog/elastic-stack-release-5-0-0-alpha-3>
- <https://www.elastic.co/blog/monitoring_container_resource_usage_with_metricbeat>
- <https://www.elastic.co/docs/reference/beats/metricbeat>


## 安全说明

formula declares a Homebrew service.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: /etc/metricbeat/metricbeat.yml, /etc/metricbeat/modules.d/*.yml
- Unix: {path.home}/metricbeat.yml, {path.config}/modules.d/*.yml
- Windows: {path.home}\metricbeat.yml, {path.config}\modules.d\*.yml

## Credential files

- Linux: /var/lib/metricbeat/metricbeat.keystore
- Unix: {path.data}/metricbeat.keystore
- Windows: {path.data}\metricbeat.keystore
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** metricbeat
- **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

## 其他软件包管理器记录

- Nix - metricbeat: normalized package name match | nixpkgs package indexes: metricbeat from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Chocolatey - metricbeat: normalized package name match | Chocolatey community package catalog: metricbeat from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','maxima'


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [mage](https://pkg.so/zh-hans/brew/mage/) - Build dependency declared by Homebrew.
- [filebeat](https://pkg.so/zh-hans/brew/filebeat/) - Shares the same upstream source repository.
- [auditbeat](https://pkg.so/zh-hans/brew/auditbeat/) - Shares the same upstream source repository.
- [heartbeat](https://pkg.so/zh-hans/brew/heartbeat/) - Shares the same upstream source repository.
- [packetbeat](https://pkg.so/zh-hans/brew/packetbeat/) - Shares the same upstream source repository.
- [collectd](https://pkg.so/zh-hans/brew/collectd/) - Shares pkgdb curated category or tags: cli, metrics, monitoring, system.
- [netdata](https://pkg.so/zh-hans/brew/netdata/) - Shares pkgdb curated category or tags: cli, metrics, monitoring, observability, system.
- [zabbix](https://pkg.so/zh-hans/brew/zabbix/) - Shares pkgdb curated category or tags: cli, metrics, monitoring, observability, system.
- [rhit](https://pkg.so/zh-hans/brew/rhit/) - Shares pkgdb curated category or tags: cli, observability, system.
- [node_exporter](https://pkg.so/zh-hans/brew/node-exporter/) - Shares pkgdb curated category or tags: cli, metrics, monitoring, system.
- [ctop](https://pkg.so/zh-hans/brew/ctop/) - Shares pkgdb curated category or tags: cli, metrics, monitoring, system.
- [bpftop](https://pkg.so/zh-hans/brew/bpftop/) - Shares pkgdb curated category or tags: cli, monitoring, observability, system.
- [htop](https://pkg.so/zh-hans/brew/htop/) - Shares pkgdb curated category or tags: cli, monitoring, system.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
