query_timeseries
Query a Datadog metric timeseries over a time range using the metrics query language.
to必填from必填query必填
io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 1, 2026
Datadog metrics, dashboards, logs, incidents, and monitors from your MCP client.
唯讀的 MCP 伺服器,讓助理查詢 Datadog 的指標、儀表板、日誌、事件、監控器與靜音時段。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
參照 儲存庫 中的啟動說明。
metricwatch gives an MCP client or a terminal read access to a Datadog account: metric timeseries queries and metric metadata, dashboards, log search, incidents, monitors, and downtimes. It is a clean-room rebuild of the Datadog MCP tool surface from Datadog's public API documentation, covering the read core listed below.
Two credentials are required, because the Datadog API requires both on
every call: an API key in DATADOG_API_KEY and an application key in
DATADOG_APP_KEY. They are sent as the DD-API-KEY and
DD-APPLICATION-KEY headers and never appear in output. Set
DATADOG_SITE (for example datadoghq.eu) to target a different
Datadog site; the default is datadoghq.com and calls go to
https://api.<site>. When either key is missing, every call fails with
an error that names the missing variable.
Or run the container image:
The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
Every MCP tool is also a CLI subcommand. Tool arguments are passed as
one JSON object with --json:
Results print as JSON. Exit codes: 0 on success, 1 when an API call
fails (including a missing key), 2 for usage errors.
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
MCP client configuration:
Out of scope for this read core: APM trace/span detail, synthetics, RUM, notebooks, SLO administration, event writes, incident creation or mutation, and on-call — see BUILD-REPORT.md.
MIT — see LICENSE.
來源:README.md,提交 fbed34a
Query a Datadog metric timeseries over a time range using the metrics query language.
to必填from必填query必填List metric names available in the Datadog account.
fromlimitGet metadata for one metric: its type, unit, and description.
metric_name必填List dashboards in the Datadog account.
limitGet one dashboard by id, including its widgets and layout.
dashboard_id必填Search Datadog log events with a log query over an optional time range.
tofromlimitquery必填List Datadog incidents.
limitGet one incident by id.
incident_id必填List monitors, optionally filtered by name.
namelimitGet one monitor by its integer id.
monitor_id必填List downtimes (scheduled monitor silences).
current_only已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
npx @reneturcios/metricwatch list_metricsdocker run -i -e DATADOG_API_KEY -e DATADOG_APP_KEY ghcr.io/cloudcorprecords/metricwatchexport DATADOG_API_KEY=<redacted>export DATADOG_APP_KEY=<redacted>
metricwatch query_timeseries --json '{"from": 1700000000, "to": 1700003600, "query": "avg:system.cpu.user{*}"}'metricwatch list_metrics --json '{"limit": 20}'metricwatch get_dashboard --json '{"dashboard_id": "abc-123"}'metricwatch search_logs --json '{"query": "service:web status:error", "limit": 25}'metricwatch list_monitorsmetricwatch get_monitor --json '{"monitor_id": 42}'
metricwatch --versionnpx -y @reneturcios/metricwatch mcp{ "mcpServers": { "metricwatch": { "command": "npx", "args": ["-y", "@reneturcios/metricwatch", "mcp"], "env": { "DATADOG_API_KEY": "your Datadog API key", "DATADOG_APP_KEY": "your Datadog application key" } } }}npm installnpm run build # tsc -> dist/npm test # node test runner over test/*.test.ts, no network (fake fetch fixtures)npm run dev # run the CLI from source via tsx