Dt Setup Oneagent 标志

Dt Setup Oneagent

组织
Dynatrace
dt-setup-oneagent

提供参考知识,介绍如何在 VM/服务器、Kubernetes(Operator + DynaKube)、AWS Lambda(layer + 环境变量,也可选择配置新的函数)、Windows 主机、通过 SSH 远程连接的 Linux 主机/EC2 实例,以及 Azure VM/VM Scale Sets 上安装、卸载或创建并安装 Dynatrace OneAgent。提供文档中列出的端点、环境变量、Token 权限范围和可直接复制粘贴的命令。仅提供准确的待执行命令,不会代为执行。用户询问如何安装或卸载 OneAgent,或提出“如何……”“需要哪个 URL/权限范围/变量才能……”“解释 X 的 OneAgent 部署方式”等问题时,请使用此技能。

Add to TypingMind

概览

发布者Dynatrace
代码仓库dynatrace-for-ai
技能名称dt-setup-oneagent
星标数
156
复刻数
30
附带文件
5
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 5 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Dynatrace 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Dt Setup Oneagent AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Dynatrace/dynatrace-for-ai/tree/main/skills/dt-setup-oneagent
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Dynatrace/dynatrace-for-ai.git /tmp/dynatrace-for-ai
mkdir -p .claude/skills
cp -r /tmp/dynatrace-for-ai/skills/dt-setup-oneagent .claude/skills/dt-setup-oneagent
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Dt Setup Oneagent,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Dt Setup Oneagent。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Dt Setup Oneagent 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Deploy Dynatrace OneAgent — knowledge reference

This skill is reference-only. It contains the documented endpoints, environment variables, token scopes, and commands that an operator (or another agent) needs to install OneAgent manually across the supported targets. It executes nothing.

This skill gives you the commands; it does not run them. Follow the procedure for the target you need, substituting the environment URL and token as documented below.

Hard rules for any agent consuming this skill

  • Operate only on resources the user explicitly named. Never create a placeholder/test Lambda, IAM role, K8s namespace, secret, S3 bucket, EC2 instance, or any other fixture on your own initiative — not to "demonstrate", not "while we're at it", not preemptively. If the named resource doesn't exist and the user hasn't asked for it to be created, stop and ask. Side resources (additional Secrets Manager entries, monitoring, helper stacks) must not be provisioned silently — surface them as confirmation questions with the exact definition first.
  • Explicit user-driven create modes are fine. When the user passes --create (or explicitly says "yes, create it" after being asked), provisioning exactly the resources documented for that mode is the right thing to do — see Create a new function and install OneAgent in references/aws-lambda.md for the documented set. Don't second-guess the function name the user typed: do not pattern-match on names like "test", "demo", "scratch", "tmp" and refuse, warn, or insist on an alternative. The input is authoritative; the rule above is about silent or unsolicited creation, not user-requested creation.
  • Never persist the API token. The token's only job is to (a) authenticate the OneAgent artifact download / layer-ARN lookup and (b) get handed to the target system (Lambda env var or Secrets Manager, Linux installer, DynaKube secret) as part of the install. Do not cache it to local files, write it to scratch scripts, leave it in shell history, copy it into PR descriptions, or store it anywhere outside the target system that strictly needs it. Treat each run as fresh: supply via env var or 0600 file, use, discard.
  • Never echo or log the API token. When you have to reference it in a command, write $DT_API_TOKEN or an elided prefix (dt0s16.…, dt0c01.…). Don't paste the literal value into prose.
  • Never assume the env URL, and confirm the tenant before installing. Targeting the wrong environment fails silently: the install succeeds and the host or function simply reports to a tenant nobody is watching. An environment URL the user stated explicitly always wins over anything derived from a tool default or a previous run — never let a cached or discovered value override it. State the tenant you are about to use and let the user correct you. Tenant IDs (abc12345) and labs vs. prod determine the correct host.
  • Writes that take a collection replace it — read, merge, then write. Several APIs here accept a whole collection and overwrite whatever was there: aws lambda update-function-configuration does this for both --environment and --layers, so sending only the Dynatrace values silently deletes the function's own variables and any other layers. Always read current state, merge your additions into it, and write the union back. Take a rollback snapshot before the first write. This applies wherever you are about to replace a set rather than add to one.
  • Deriving the env URL from dtctl. dtctl config current-context returns only the context name (e.g. my-env), not a URL. The URL comes from dtctl config describe-context <ctx>. Do not pipe that straight into jq: some dtctl versions ignore -o json and print a human table (Environment: https://…) while still exiting 0, so jq dies on a parse error and takes any set -e -o pipefail script down with it. Check the output really is JSON first, and fall back to scraping the Environment: line:
bash
CTX="$(dtctl config current-context 2>/dev/null || true)"
OUT="$(dtctl config describe-context "$CTX" -o json 2>/dev/null || true)"
if printf '%s' "$OUT" | jq -e . >/dev/null 2>&1; then
  DT_ENV_URL="$(printf '%s' "$OUT" | jq -r '.environment // .url // empty')"
else
  DT_ENV_URL="$(printf '%s' "$OUT" | awk 'tolower($1) ~ /^(environment|url):$/ {print $2; exit}')"
fi

URL normalization

Dynatrace's "new platform" URLs and the classic OneAgent installer endpoints differ. Before constructing installer URLs, convert:

Input (Dynatrace UI / docs)Use for installer endpoints
https://<id>.apps.dynatrace.comhttps://<id>.live.dynatrace.com
https://<id>.<region>.apps.dynatracelabs.comhttps://<id>.<region>.dynatracelabs.com
Anything elseunchanged

The tenant ID is the first dot-separated segment (<id>).


Token types and the Authorization header

Two token families are in play, and the Authorization scheme is chosen by the token's prefix, not by which endpoint you call:

TokenPrefixHeader
Platform tokendt0s16.Authorization: Bearer <token>
Access token (classic API token)dt0c01.Authorization: Api-Token <token>
PaaS tokendt0s01.Authorization: Bearer <token>
OAuth client secretdt0s02. / dt0s03.❌ not directly usable — must be exchanged for a bearer token first

Platform tokens are the forward-looking default. Dynatrace is deprecating access tokens: new tenants can no longer create them, and Classic API endpoints are being updated to accept platform tokens. Do not assume a token starts with dt0c01.. The reference implementation of this rule is dtwiz's AuthHeader() (pkg/installer/installer.go): dt0c01.* → Api-Token, everything else → Bearer.

One path hands the token to a component that has historically required a PaaS/access token — if it rejects a platform token, use a dt0c01. access token there:

  • Kubernetes — the Dynatrace Operator authenticates using the dynakube secret.

VM, remote VM/EC2, Windows and Lambda call the Deployment API directly and work with either family.

Token scopes by target

For a platform token (dt0s16.), the OneAgent-relevant scopes live under Fleet management: fleet-management:oneagents:download, fleet-management:oneagent.connection-info:read, fleet-management:oneagent.tokens:read, fleet-management:cluster-id:read; Kubernetes additionally wants fleet-management:activegates:download and fleet-management:activegate.tokens:create. Generating the token via the Dynatrace QuickStart app provisions a working set.

For a classic access token (dt0c01.):

TargetRequired token scopes
VM / WindowsInstallerDownload (PaaS)
KubernetesInstallerDownload, settings.read, settings.write, activeGateTokenManagement.create — the Dynatrace UI's "Kubernetes: Dynatrace Operator" template sets all four.
Azure VM / VMSSInstallerDownload (PaaS). Azure side: the caller's az identity needs Contributor or any role granting Microsoft.Compute/.../extensions/write on the resource.
AWS Lambda (runtime token)A connection auth token consumed by the OneAgent layer at runtime. Distinct from the installer token. Create from the Dynatrace UI under Access tokens with entities.read, or use the Hub → AWS Lambda template.

Tokens are never username-scoped — they belong to the tenant.


Targets

Each target has its own reference. They share the rules, URL normalization and token guidance above — read those first, then the one you need.

Managed Kubernetes distributions are covered inside the Kubernetes reference rather than separately: the install is identical and only the node type differs, so the deltas belong next to the procedure they modify.

TargetReference
VM / server (Linux, macOS)below — the base case every other target builds on
Remote VM / EC2 over SSH→ references/remote-vm-ec2.md
Windows host (WSL or native)→ references/windows.md
Kubernetes (Operator + DynaKube) — incl. EKS, Fargate and Bottlerocket limits→ references/kubernetes.md
AWS Lambda (layer + env vars)→ references/aws-lambda.md
Azure VM / VM Scale Set (VM extension)→ references/azure-vm.md

By platform

The table above is organised by install mechanism, because that is what decides the procedure. If you are arriving from a particular cloud instead:

PlatformWhat you are deploying toGo to
AWSEC2 instanceremote-vm-ec2.md
EKS — EC2 nodeskubernetes.md
EKS — Fargate or Bottlerocket nodeskubernetes.md § AWS EKS specifics — full-stack unavailable, applicationMonitoring only
Lambda functionaws-lambda.md
AzureVM or VM Scale Setazure-vm.md
AKSkubernetes.md — not the VM extension, even though node pools are VMSSes
Google CloudGKE (standard)kubernetes.md
GKE Autopilotkubernetes.md for the operator path — full-stack is unavailable, as on Bottlerocket. Autopilot-specific tuning is not covered
Compute Engine VMremote-vm-ec2.md — the SSH procedure is not AWS-specific
On-prem / anywhere elseLinux or macOS you are logged intobelow
Linux you reach over SSHremote-vm-ec2.md
Windowswindows.md
Kubernetes, or OpenShift via the standard operatorkubernetes.md — the classic OpenShift node-config-operator route is not covered

VM / server (Linux, macOS)

Endpoint (substitute ${DT_ENV_URL_NORMALIZED} and ${ARCH} where ARCH ∈ x86 | arm | ppc64le | s390):

GET ${DT_ENV_URL_NORMALIZED}/api/v1/deployment/installer/agent/unix/default/latest?arch=${ARCH}&flavor=default
Header: Authorization: Api-Token ${DT_API_TOKEN}   # dt0c01.… access token
        Authorization: Bearer ${DT_API_TOKEN}      # dt0s16.… platform token

Install command:

Set the scheme to match your token — Api-Token for dt0c01.…, Bearer for dt0s16.…:

bash
DT_AUTH="Api-Token ${DT_API_TOKEN}"   # platform token: DT_AUTH="Bearer ${DT_API_TOKEN}"

wget -O Dynatrace-OneAgent-Linux.sh \
  --header="Authorization: ${DT_AUTH}" \
  "${DT_ENV_URL_NORMALIZED}/api/v1/deployment/installer/agent/unix/default/latest?arch=${ARCH}&flavor=default"

sudo /bin/sh Dynatrace-OneAgent-Linux.sh \
  --set-monitoring-mode=fullstack \
  --set-app-log-content-access=true \
  [--set-host-group=<name>] \
  [--set-network-zone=<zone>]

Restart caveat: OneAgent cannot inject into already-running processes. After install, restart the workloads you want monitored.

Uninstall:

bash
sudo /opt/dynatrace/oneagent/agent/uninstall.sh

Removes the systemd unit, /opt/dynatrace, and the /etc/ld.so.preload line that injects the agent.


When you should not use this skill

  • The user wants the install performed for them rather than explained. → This skill still applies: follow the target's procedure and run the commands, confirming the tenant first.
  • The user is asking why an install failed and wants an explanation. → This skill is appropriate.
  • The user wants a target this skill doesn't cover (Azure Functions / App Service / Container Apps, classic OpenShift node-config-operator, GKE Autopilot specifics, ECS Fargate). → Refer to https://docs.dynatrace.com; this skill covers VM/server, remote VM/EC2 over SSH, Windows, Kubernetes and AWS Lambda.

References

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Dt Setup Oneagent AI 技能有什么作用?

提供参考知识,介绍如何在 VM/服务器、Kubernetes(Operator + DynaKube)、AWS Lambda(layer + 环境变量,也可选择配置新的函数)、Windows 主机、通过 SSH 远程连接的 Linux 主机/EC2 实例,以及 Azure VM/VM Scale Sets 上安装、卸载或创建并安装 Dynatrace OneAgent。提供文档中列出的端点、环境变量、Token 权限范围和可直接复制粘贴的命令。仅提供准确的待执行命令,不会代为执行。用户询问如何安装或卸载 OneAgent,或提出“如何……”“需要哪个 URL/权限范围/变量才能……”“解释 X 的 OneAgent 部署方式”等问题时,请使用此技能。

为什么在 TypingMind 中使用 Dt Setup Oneagent?

因为您只需安装一次,就能搭配任何模型使用。Dt Setup Oneagent 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Dt Setup Oneagent?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Dynatrace/dynatrace-for-ai/tree/main/skills/dt-setup-oneagent。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Dt Setup Oneagent?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Dt Setup Oneagent 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Dt Setup Oneagent 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Dt Setup Oneagent AI 技能免费吗?

是的。Dynatrace 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇