Inline Metrics with Sparkline π
Display real-time metrics as sparklines directly in resource lists.
Concept
β EC2 Instances ββββββββββββββββββββββββββββββββββββββββββββββ
β Name State CPU(15m) Type Region β
β web-prod-1 running βββ
ββ
ββ 45% t3.medium us-east-1 β
β web-prod-2 running βββββββ 8% t3.medium us-east-1 β
β batch-worker running βββββββ 95% c5.xlarge us-east-1 β
β db-replica running Β·Β·Β·Β·Β·Β·Β· - t3.small us-east-1 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[M] Toggle metrics | Loading metrics... (3/4)
Target Resources
| Resource |
Metrics |
| EC2 |
CPUUtilization |
| RDS |
CPUUtilization, FreeableMemory |
| Lambda |
Invocations, Errors |
| ECS Service |
CPUUtilization, MemoryUtilization |
| ELB |
RequestCount |
Implementation
- MetricFetcher: CloudWatch GetMetricData batch API
- Sparkline Renderer: Unicode blocks
βββββ
βββ
- Async Loading: Show list first, fill metrics progressively
- Toggle:
M key to enable/disable (default OFF to save API calls)
Technical Notes
- Use GetMetricData for batch efficiency
- 15-minute window, 1-minute resolution (15 data points)
- Cache metrics for short period to avoid repeated calls
Inline Metrics with Sparkline π
Display real-time metrics as sparklines directly in resource lists.
Concept
Target Resources
Implementation
βββββ βββMkey to enable/disable (default OFF to save API calls)Technical Notes