Admin tools for the Storacha Forge network.
Clone the repo and then in the root directory:
make install- Create your network config file using
config.template.yamlas a base. - Use CLI command passing the config:
forgectl --config ./config.yaml ...
Export payment and fault metrics via OTLP for monitoring.
Collect payment channel metrics (funds, lockup, runway):
forgectl metrics payments \
--config ./config.yaml \
--payer 0xYourPayerAddress \
--otlp-endpoint otel-collector.example.com:4318Metrics exported:
forgectl_payer_funds- Total deposited funds (USDFC)forgectl_payer_lockup_current- Current lockup amount (USDFC)forgectl_payer_runway_seconds- Estimated time until funds depleted
Collect proof fault metrics (missed proving periods):
forgectl metrics faults \
--config ./config.yaml \
--payer 0xYourPayerAddress \
--otlp-endpoint otel-collector.example.com:4318Metrics exported:
forgectl_rail_missed_periods- Count of missed proving periods per dataset
| Flag | Description |
|---|---|
--payer |
Payer address to monitor (required) |
--otlp-endpoint |
OTLP HTTP endpoint (required) |
--otlp-insecure |
Use HTTP instead of HTTPS |
Both commands collect metrics once and exit, making them suitable for cron jobs:
# Payment metrics every 30 minutes
*/30 * * * * /path/to/forgectl metrics payments --config /path/to/config.yaml --payer 0x... --otlp-endpoint ...
# Fault metrics every 12 hours
0 */12 * * * /path/to/forgectl metrics faults --config /path/to/config.yaml --payer 0x... --otlp-endpoint ...GitHub Actions workflows are also provided in .github/workflows/ for automated collection.