mcpField
Z
zeabur-service-metric

zeabur-service-metric

github.com/zeaburCloud & DevOps39156 installsUpdated 7w ago
Repository

About zeabur-service-metric

zeabur-service-metric is a skill for checking CPU, memory and network metrics for Zeabur services. It also outlines a metrics-first diagnostic workflow for investigating slow or unresponsive services.

Key features

  1. 01Check CPU usage
  2. 02Check memory usage
  3. 03Check network I/O
  4. 04Adjust the metrics time window
  5. 05Guide metrics-based diagnosis

Use cases

  1. 01Investigate a slow service
  2. 02Check memory use before restarting
  3. 03Distinguish resource pressure from application issues

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/zeabur/agent-skills --skill zeabur-service-metric

After installing, type/zeabur-service-metricin Claude Code to confirm it loaded.

Details

From the project README

Zeabur Service Metrics

Always use npx zeabur@latest to invoke Zeabur CLI. Never use zeabur directly or any other installation method. If npx is not available, install Node.js first.

Check Metrics

# CPU usage
npx zeabur@latest service metric CPU --id <service-id> -i=false

# Memory usage
npx zeabur@latest service metric MEMORY --id <service-id> -i=false

# Network I/O
npx zeabur@latest service metric NETWORK --id <service-id> -i=false

Use --hour <N> to change the time window (default: 2 hours):

npx zeabur@latest service metric CPU --id <service-id> --hour 24 -i=false

Diagnostic Workflow

When a user reports a slow or unresponsive service, check metrics before restarting:

# 1. Get service ID (use the `zeabur-service-list` skill)
npx zeabur@latest service list --project-id <project-id> -i=false

# 2. Check CPU — is the service compute-bound?
npx zeabur@latest service metric CPU --id <service-id> -i=false

# 3. Check memory — is the service running out of RAM?
npx zeabur@latest service metric MEMORY --id <service-id> -i=false

# 4. Check network — is there unusual traffic?
npx zeabur@latest service metric NETWORK --id <service-id> -i=false

# 5. Check logs for errors (use the `zeabur-deployment-logs` skill for details)
npx zeabur@latest deployment log --id <service-id> -i=false

Then decide the action based on evidence:

SymptomLikely causeAction
CPU consistently near 100%Compute-bound workloadUpgrade plan or optimize code
Memory climbing until OOMMemory leak or undersized planRestart with zeabur-restart skill (temporary) + fix leak
Network spikesTraffic surge or external API issuesCheck logs for request patterns
All metrics normalApplication-level bugCheck deployment logs

Comments

Markdown supported