# 使用 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
- **版本:** 9.4.4
- **来源摘要:** Collect metrics from your systems and services
- **主页:** <https://www.elastic.co/beats/metricbeat>
- **仓库:** <https://github.com/elastic/beats>
- **最后更新:** 2026-07-23T19:32:44+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- metricbeat (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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
## 其他软件包管理器记录

- 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'


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
