Overview
The metrics API provides comprehensive performance data for a specific blockchain chain, including provider statistics, RPC method performance, and system resource usage.Endpoint
Path Parameters
The chain identifier (e.g.,
ethereum, polygon, arbitrum)Response
The chain identifier
The numeric chain ID (e.g., 1 for Ethereum)
Unix timestamp in milliseconds when metrics were collected
VM and system resource utilization
Aggregated performance metrics for the chain
Performance metrics for each provider
List of RPC methods that have been called on this chain
Detailed RPC method performance organized by provider
Detailed RPC method performance organized by method
Timestamp when metrics were last updated
Response Example
Error Responses
Chain Not Found
404 Not Found
Missing Chain Parameter
400 Bad Request
Use Cases
Monitor Chain Performance
Track overall performance metrics for a blockchain:Provider Performance Comparison
Compare performance across different RPC providers:RPC Method Analysis
Analyze performance of specific RPC methods:System Resource Monitoring
Monitor system resource usage:Performance Dashboards
Integrate with monitoring tools like Grafana, Datadog, or Prometheus:Notes
- Metrics are updated in real-time based on actual RPC traffic
- Performance percentiles (p50, p95, etc.) are calculated over a sliding window
- Provider scores are calculated based on a combination of latency, success rate, and reliability
- The
rpc_performance_by_providerandrpc_performance_by_methodfields provide the same data organized differently for convenience - System metrics reflect the Erlang VM’s resource usage, not the underlying host system