metrics

Query and aggregate Railway service CPU, memory, network, and disk metrics.

1|1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/0xHoneyJar/loa-constructs --skill metrics-0xhoneyjar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: metrics
Source: https://github.com/0xHoneyJar/loa-constructs/tree/main/.agents/skills/metrics
Command: npx skills add https://github.com/0xHoneyJar/loa-constructs --skill metrics-0xhoneyjar

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill helps operators quickly observe resource usage for Railway services, enabling proactive performance management and cost awareness.

Core Features & Use Cases

  • Resource visibility: fetch CPU, memory, network, and disk usage for one or more services.
  • Time-bounded analysis: run queries over customizable time ranges to spot trends and anomalies.
  • Use Case: Identify a memory leak by correlating memory usage with deployment timestamps and load.

Quick Start

Ask Railway to fetch CPU, memory, network, and disk usage for a specific service over a defined time range.

Frequently Asked Questions about metrics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monitor CPU and memory usage for Railway services?

Monitor Railway service resource usage by querying and aggregating CPU, memory, network, and disk metrics. You can fetch measurements like CPU_USAGE and MEMORY_USAGE_GB across deployments and regions, grouping results by deployment or service.

Can I group resource usage metrics by deployment or service on Railway?

Yes, you can group resource usage metrics by deployment or service. The query accepts optional serviceId and grouping parameters, allowing you to aggregate CPU, memory, network, and disk data across specific Railway deployments or services.

What do I need to query Railway network and disk metrics?

To query Railway network and disk metrics, you need an environmentId and a startDate. You also require jq installed as a dependency, and can optionally provide a serviceId to target specific services.

How do I diagnose a memory leak using Railway service metrics?

Diagnose a memory leak by running time-bounded queries for MEMORY_USAGE_GB and correlating memory usage trends with deployment timestamps. Analyzing customizable time ranges helps spot anomalies and identify abnormal resource consumption patterns.

Why do I need jq to check Railway service resource usage?

You need jq to parse and aggregate the JSON output returned when querying Railway service resource usage. It processes the raw metrics data for CPU, memory, network, and disk measurements into structured results for performance diagnosis.

What is the best way to spot performance anomalies in Railway deployments?

Spot performance anomalies in Railway deployments by running time-bounded queries that aggregate CPU, memory, network, and disk metrics. Fetching resource usage data over customizable time ranges helps identify trends and correlate anomalies with deployment events.