dicklesworthstone/pi_agent_rust/metrics
Claude Code and agent skill by dicklesworthstone/pi_agent_rust
- community
Checking that the SKILL.md file is still in the repository.
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".
Install
npx vskill@latest install dicklesworthstone/pi_agent_rust/metricsSKILL.md
The same SKILL.md was published earlier as dicklesworthstone/pi_agent_rust/metrics.
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→ environmentIdservice.id→ serviceId (optional - omit to get all services)
MetricMeasurement Values
| Measurement | Description | |
|---|---|---|
| CPU_USAGE | CPU usage (cores) | |
| CPU_LIMIT | CPU limit (cores) | |
| MEMORY_USAGE_GB | Memory usage in GB | |
| MEMORY_LIMIT_GB | Memory limit in GB | |
| NETWORK_RX_GB | Network received in GB | |
| NETWORK_TX_GB | Network transmitted in GB | |
| DISK_USAGE_GB | Disk usage in GB | |
| EPHEMERAL_DISK_USAGE_GB | Ephemeral disk usage in GB | |
| BACKUP_USAGE_GB | Backup usage in GB |
MetricTag Values (for groupBy)
| Tag | Description | |
|---|---|---|
| DEPLOYMENT_ID | Group by deployment | |
| DEPLOYMENT_INSTANCE_ID | Group by instance | |
| REGION | Group by region | |
| SERVICE_ID | 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.
Output Interpretation
ts- timestamp in ISO formatvalue- metric value (cores for CPU, GB for memory/disk/network)
Composability
- Get IDs: Use railway-status skill or
railway status --json - Check service health: Use railway-service skill for deployment status
- View logs: Use railway-deployment skill if metrics show issues
- Scale service: Use railway-environment skill to adjust resources
Error Handling
Empty/Null Metrics
Services without active deployments return empty metrics arrays. When processing with jq, handle nulls:
No Metrics Data
Service may be new or have no traffic. Check:
- Service has active deployment (stopped services have no metrics)
- Time range includes deployment period
Invalid Service/Environment ID
Verify IDs with railway status --json.
Permission Denied
User needs access to the project to query metrics.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtests/ext_conformance/artifacts/templates-davila7/cli-tool/components/skills/railway/metrics/SKILL.md
Popularity
- Repository stars
- 1,831
- Repository forks
- 218
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dicklesworthstone/pi_agent_rust/metrics)