{
  "slug": "railway-cli-adds-metrics-inspection-command-49e1f4303663",
  "title": "railway CLI adds metrics inspection command",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-04T15:25:21.000Z",
  "announced_at": "2026-05-04T15:25:21.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When reviewing a Railway deployment, inspect metrics for the linked service (last hour by default) or select a service and environment; use the documented filters, time range, or output mode for the needed detail.",
    "examples": [
      "railway metrics --service <service> --environment <environment> --since 6h --json",
      "railway metrics --http --method POST --path /api/users",
      "railway metrics --raw --json --cpu"
    ],
    "gotchas": [
      "Version: v4.45.0",
      "--service <service>: Select service by name or ID; defaults to linked service; conflicts with --all.",
      "--all: Show metrics for every service in the project; conflicts with --raw.",
      "--environment <environment>: Select environment by name or ID; defaults to linked environment.",
      "--since <time>: Window start; relative value (1h, 6h, 1d, 7d) or ISO 8601; defaults to 1h.",
      "--until <time>: Window end, using same formats as --since; defaults to now; conflicts with --watch.",
      "--cpu: Show CPU metrics only, unless combined with other metric group filters.",
      "--memory: Show memory metrics only, unless combined with other metric group filters.",
      "--network: Show public network traffic only, unless combined with other metric group filters.",
      "--volume: Show volume/disk metrics only, unless combined with other metric group filters.",
      "--http: Show HTTP metrics only, unless combined with other metric group filters.",
      "--method <method>: Filter HTTP metrics by request method; requires --http; method value is case-insensitive enum.",
      "--path <path>: Filter HTTP metrics by request path; requires --http.",
      "--json: Output in JSON format; conflicts with --watch.",
      "--raw: Output raw time-series data points instead of summaries; conflicts with --all and --watch.",
      "--watch: Continuously refresh metrics in a live TUI dashboard; conflicts with --json, --raw, and --until.",
      "Prerequisite: Install Railway CLI and authenticate with `railway login`; link a project/environment for the command context. Official CLI docs list installation and authentication steps.",
      "Prerequisite: HTTP filters `--method` and `--path` require `--http`; `--watch` supports only documented time ranges for `--since`."
    ]
  },
  "why_it_matters": "Inspect service or project resource and HTTP metrics while debugging or reviewing a Railway deployment.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v4.45.0",
    "https://github.com/railwayapp/cli/pull/867",
    "https://github.com/railwayapp/cli/blob/v4.45.0/src/commands/metrics.rs",
    "https://docs.railway.com/cli"
  ],
  "rank": 0.99066,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-09a2f9bda13a6fb6-0:gate",
    "evidence_hash": "ea7e4057fa08fb0e4cbbc4f8d2dcae52eaf64aca67bdcac32b376535f41cc0a4"
  },
  "review": {
    "draft_hash": "bf97fa3f0ba5bc8b2778ba9b0f379b231e27c7153293edd3826b582068b21e1c",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.99 >= 0.9; 2 needed) and Jev gave 0.81 (>= 0.6 needed)."
  }
}
