remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Provides access to Datadog API to fetch monitoring data, including monitor states and Kubernetes logs from infrastructure
Enables extraction and formatting of error logs from Kubernetes clusters through the Datadog API
Datadog 模型上下文协议 (MCP) 🔍
一个基于 Python 的工具,用于与 Datadog API 交互并从您的基础架构获取监控数据。此 MCP 通过简单的界面提供对监控状态和 Kubernetes 日志的轻松访问。
Datadog 功能🌟
- 监控状态跟踪:获取并分析特定的监控状态
- Kubernetes 日志分析:从 Kubernetes 集群中提取并格式化错误日志
先决条件📋
- Python 3.11+
- Datadog API 和应用程序密钥(具有正确的权限)
- 访问 Datadog 网站
安装🔧
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Datadog:
所需软件包:
环境设置🔑
使用您的 Datadog 凭证创建一个.env
文件:
为 MCP 设置 Claude 桌面设置 🖥️
- 安装 Claude Desktop
- 设置 Datadog MCP 配置:
用法💻
建筑🏗
- FastMCP Base :利用 FastMCP 框架进行工具管理
- 模块化设计:监视器和日志的独立功能
- 类型安全:通过 Python 类型提示提供全面的类型支持
- API 抽象:包装 Datadog API 调用并进行错误处理
我将添加有关 MCP 和 Claude Desktop 设置的部分:
模型上下文协议(MCP)简介🤖
什么是 MCP?
模型上下文协议 (MCP) 是一个框架,允许 AI 模型以标准化的方式与外部工具和 API 交互。它使 Claude 等模型能够:
- 访问外部数据
- 执行命令
- 与 API 交互
- 在对话中保持上下文
MCP 服务器的一些示例
https://github.com/punkpeye/awesome-mcp-servers?tab=readme-ov-file
MCP 设置教程
工作原理 - 可用功能🛠️
LLM 使用提供的函数来获取数据并使用它
1. 获取监控状态
例子:
2. 获取 Kubernetes 日志
例子:
4.验证安装
在克劳德的聊天桌面
检查 Claude 中的 Datadog 连接
5. 使用 Datadog MCP 工具
安全注意事项
- 将 API 密钥存储在
.env
中 - MCP 在隔离环境中运行
- 每个工具都有定义的权限
- 实施速率限制
故障排除
使用 MCP 检查器
MCP 检查器提供:
- 实时查看MCP服务器状态
- 函数调用日志
- 错误追踪
- API响应监控
常见问题和解决方案
- API 身份验证错误➡️ 检查 .env 中的 DD_API_KEY 和 DD_APP_KEYCopy
- MCP 连接问题➡️ 验证你的 claude_desktop_config.json 路径和内容Copy
- 未找到监视器➡️ 检查监视器名称拼写和大小写Copy
- 日志可以在这里找到
贡献🤝
请随意:
- 未解决的错误问题
- 提交 PR 以进行改进
- 添加新功能
注释📝
- 对 Datadog EU 站点进行 API 调用
- 监控状态的默认时间范围为 1 小时
- 设置页面大小限制以处理大多数用例
This server cannot be installed
提供对来自 datadog 的监视器和集群日志的访问
- Datadog Features 🌟
- Prerequisites 📋
- Installation 🔧
- Environment Setup 🔑
- Setup Claude Desktop Setup for MCP 🖥️
- Usage 💻
- Architecture 🏗
- Model Context Protocol (MCP) Introduction 🤖
Related Resources
Appeared in Searches
- A service for application performance monitoring and observability
- A platform for monitoring and analyzing system and application performance
- A platform for monitoring and analyzing data in real-time
- A service for monitoring and analytics of applications and infrastructure
- Guidance on reading and interpreting console logs