ampctl CLI and the Admin API.
Admin Interfaces
Amp offers two complementary interfaces for administration:ampctl CLI
Command-line tool for interactive administration and scripting
Admin API
RESTful HTTP API for programmatic access and automation
Admin API Endpoint
The Admin API is served by theampd controller process on port 1610:
CLI vs API Usage
Both interfaces provide access to the same functionality:- Human-readable output formatting
- Interactive workflows
- Built-in validation and error messages
- Convenient aliases and shortcuts
- Programmatic access for automation
- Integration with monitoring systems
- Custom tooling and dashboards
- Direct access from applications
Core Administration Operations
Amp administration covers four main areas:Dataset Management
Register, deploy, and manage blockchain dataset configurations
Job Control
Monitor, start, stop, and manage extraction jobs
Worker Management
Monitor worker health, versions, and availability
Monitoring
Track metrics, health, and performance
Dataset Management
Manage the lifecycle of blockchain datasets:- Register datasets - Store dataset manifests with version tags
- Deploy datasets - Schedule extraction jobs to sync blockchain data
- List datasets - View all registered datasets and versions
- Inspect datasets - Get detailed configuration and metadata
- Restore datasets - Recover metadata from object storage
Job Control
Control and monitor extraction jobs:- List jobs - View active and historical jobs with pagination
- Inspect jobs - Get detailed job status and configuration
- Monitor progress - Track sync state and block numbers
- Stop jobs - Gracefully terminate running jobs
- Remove jobs - Clean up completed or failed jobs
Worker Management
Monitor the distributed worker fleet:- List workers - View all registered workers
- Inspect workers - Get detailed worker information and build version
- Monitor health - Track heartbeats and worker availability
- Troubleshoot - Debug worker issues and version mismatches
Monitoring & Observability
Track system health and performance:- Health checks - Verify system components are operational
- Metrics - Collect and export operational metrics
- OpenTelemetry - Integration with observability platforms
- Progress tracking - Monitor data sync status
Quick Start Examples
Using ampctl CLI
Using Admin API
JSON Output for Automation
All ampctl commands support--json flag for machine-readable output:
Architecture
Administration flows through the following components:- ampctl - CLI tool that calls the Admin API
- Admin API - RESTful HTTP service served by
ampd controller - Admin Client - Rust library for programmatic API access
- Controller - Orchestrates operations and manages metadata
- Metadata DB - PostgreSQL database storing system state
Next Steps
Dataset Management
Learn how to register and deploy datasets
Job Management
Control and monitor extraction jobs
Worker Management
Monitor and troubleshoot workers
Monitoring
Set up metrics and observability