# Datadog Agent

用于 Datadog 监控与安全功能的 macOS Agent；使用前需配置 API 密钥。

> 这是 OpenNavo 上 Datadog Agent 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/datadog-agent>

- **最新版本**: `7.86.0-1`
- **开发者**: Datadog
- **主页**: <https://www.datadoghq.com/>
- **分类**: [安全与隐私](https://opennavo.com/zh/categories/security)
- **安装**: `brew install --cask datadog-agent`
- **近 30 天安装**: 35
- **Homebrew**: 可以安装，由 Homebrew 更新
- **下载地址**: <https://dd-agent.s3.amazonaws.com/datadog-agent-7.86.0-1.arm64.dmg>
- **SHA-256**: `f580b120f2c6333049ee261006a218dc79215007c34bc4be74aff91c3188774d`

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 注意事项

You will need to update /opt/datadog-agent/etc/datadog.yaml and replace APIKEY with your api key If you ever want to start/stop the Agent, please use the Datadog Agent App or datadog-agent command. It will start automatically at login, if you want to enable it at startup, run these commands: sudo cp '/opt/datadog-agent/etc/com.datadoghq.agent.plist.example' /Library/LaunchDaemons/com.datadoghq.agent.plist sudo launchctl load -w /Library/LaunchDaemons/com.datadoghq.agent.plist

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "uninstall": [
        {
          "delete": [
            "/Applications/Datadog Agent.app",
            "/usr/local/bin/datadog-agent"
          ],
          "launchctl": "com.datadoghq.agent",
          "pkgutil": "com.datadoghq.agent",
          "quit": "com.datadoghq.agent"
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "installer": [
        {
          "manual": "datadog-agent-7.86.0-1.arm64.pkg"
        }
      ]
    },
    "phase": "install",
    "sources": [],
    "type": "installer"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "/opt/datadog-agent",
            "~/.datadog-agent",
            "~/Library/LaunchAgents/com.datadoghq.agent.plist"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

Datadog Agent 是一款 macOS 应用，用于 Datadog 在系统、应用和服务方面的监控与安全功能。Homebrew cask 提供 Agent PKG，但需要手动安装。

- 安装下载的 `datadog-agent` PKG，然后编辑 `/opt/datadog-agent/etc/datadog.yaml`，将 `APIKEY` 替换为你的 API 密钥后再使用。
- 使用 Datadog Agent 应用或 `datadog-agent` 命令管理 Agent。
- 如需让 Agent 在启动时运行，请使用 `sudo cp` 将示例 plist 复制到 `/Library/LaunchDaemons/com.datadoghq.agent.plist`，然后运行 `sudo launchctl load -w /Library/LaunchDaemons/com.datadoghq.agent.plist` 加载它。
- 需要 macOS 12 或更高版本。

运行 `brew install --cask datadog-agent` 获取 cask 提供的 PKG，然后手动安装该 PKG。安装后，在指定文件中配置 API 密钥，并通过应用或命令管理 Agent。cask 提供了可选的 launch daemon 设置说明。

[Datadog](https://www.datadoghq.com/) · [Homebrew cask 详情](https://raw.githubusercontent.com/Homebrew/homebrew-cask/HEAD/Casks/d/datadog-agent.rb)

## 系统要求

- macOS 12 起 · 应用版本: 7.86.0-1 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/d/datadog-agent.rb> · 核查于 2026-11-24
  - <https://dd-agent.s3.amazonaws.com/datadog-agent-7.86.0-1.x86_64.dmg>
  - SHA-256: `bc4b60b1a71165b6c614ca508d76b35994d450b78de2f1e0759edecff0d65410`
- macOS 12 起 · 应用版本: 7.86.0-1 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/d/datadog-agent.rb> · 核查于 2026-11-24
  - <https://dd-agent.s3.amazonaws.com/datadog-agent-7.86.0-1.arm64.dmg>
  - SHA-256: `f580b120f2c6333049ee261006a218dc79215007c34bc4be74aff91c3188774d`

## Datadog Agent 的安全事实

这里只列可以核验的事实，并注明来源和日期，不是安全认证。要检查你下载的文件，可以用 OpenNavo 在本机扫描。

- <https://github.com/DataDog/datadog-agent> · 是否开源: 是 — <https://github.com/DataDog/datadog-agent> · 核查于 2026-11-18

## 卸载

- `brew uninstall --cask datadog-agent`

普通卸载会删除应用本身，设置和缓存会保留。

### 卸载时还会处理

- 后台服务（launchctl）: `com.datadoghq.agent` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/d/datadog-agent.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 安装包收据（pkgutil）: `com.datadoghq.agent` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/d/datadog-agent.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `/Applications/Datadog Agent.app` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/d/datadog-agent.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `/usr/local/bin/datadog-agent` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/d/datadog-agent.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

### 深度清理（可选）

- `brew uninstall --zap --cask datadog-agent`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `/opt/datadog-agent` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/d/datadog-agent.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/.datadog-agent` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/d/datadog-agent.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/LaunchAgents/com.datadoghq.agent.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/d/datadog-agent.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-24；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 41 (2023-03-22)

```
arn:aws:lambda:<AWS_REGION>:464622532012:layer:Datadog-Extension:41
arn:aws:lambda:<AWS_REGION>:464622532012:layer:Datadog-Extension-ARM:41
arn:aws-us-gov:lambda:us-gov-<AWS_REGION>:002406178527:layer:Datadog-Extension:41
arn:aws-us-gov:lambda:us-gov-<AWS_REGION>:002406178527:layer:Datadog-Extension-ARM:41
```

#### What's Changed

+ Default `DD_TRACE_MANAGED_SERVICES` to true https://github.com/DataDog/datadog-agent/pull/16176
+ Ensure we filter the serverless span correctly https://github.com/DataDog/datadog-agent/pull/16240
+ Fix panic when running the extension without appsec enabled https://github.com/DataDog/datadog-agent/pull/16054

The extension is now built with the `otlp` build tag which enables opentelemetry.

## 资料与来源

- <https://opennavo.com/zh/apps/datadog-agent>
- <https://opennavo.com/zh/apps/datadog-agent/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/d/datadog-agent.rb> · 核查于 2026-11-24
- <https://formulae.brew.sh/cask/datadog-agent>
- <https://github.com/DataDog/datadog-agent> · 核查于 2026-11-18
