Agent skill · data analytics · davila7

railway-metrics

Query resource usage metrics for Railway services. Use when user asks about resource usage, CPU, memory, network, disk, or service performance like "how much memory is my service using" or "is my service slow".

Why this skill is useful

Provides specific GraphQL query patterns and metric measurement values for Railway services that the AI wouldn't reliably generate on its own.

What it needs

Requires railway-cli installed locally. About 3k tokens when loaded. Last updated 2026-08-06. 30,138 stars on the source repository.

What this skill does

Railway Service Metrics Query resource usage metrics for Railway services. When to Use User asks "how much memory is my service using?" User asks about CPU usage, network traffic, disk usage User wants to debug performance issues User asks "is my service healthy?" (combine with railway-service skill) Prerequisites Get environmentId and serviceId from linked project: Extract: environment.id → environmentId service.id → serviceId (optional - omit to get all services) MetricMeasurement Values Measurement Description ------------- ------------- CPUUSAGE CPU usage (cores) CPULIMIT CPU limit (cores) MEMORYUSAGEGB Memory usage in GB MEMORYLIMITGB Memory limit in GB NETWORKRXGB Network received in GB NETWORKTXGB Network transmitted in GB DISKUSAGEGB Disk usage in GB EPHEMERALDISKUSAGEGB Ephemeral disk usage in GB BACKUPUSAGEGB Backup usage in GB MetricTag Values (for groupBy) Tag Description ----- ------------- DEPLOYMENTID Group by deployment DEPLOYMENTINSTANCEID Group by instance REGION Group by region SERVICEID Group by service Query Example: Last Hour CPU and Memory Use heredoc to avoid shell escaping issues: Example: All Services in Environment Omit serviceId and use groupBy to get metrics for all services: Time Parameters Parameter Description ----------- ------------- startDate Required. ISO 8601 format (e.g., 2024-01-01T00:00:00Z) endDate Optional. Defaults to now sampleRateSeconds Sample interval (e.g., 60 for 1-minute samples) averagingWindowSeconds Averaging window for smoothing Tip: For last hour, calculate startDate as now - 1 hour in ISO format. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills davila7/metrics

View the source on GitHub

Browse the @skills marketplace