Understanding Metric Units
Consistent unit usage is essential for monitoring and observability. Different systems and tools may use different units, so conversion is often necessary for analysis and comparison.
Time Units
Time measurements are fundamental for latency, response time, and duration metrics.
Common Usage by Context
- Nanoseconds (ns): Low-level system calls, CPU instructions
- Microseconds (μs): In-memory operations, cache access
- Milliseconds (ms): API response times, database queries
- Seconds (s): HTTP requests, batch operations
- Minutes/Hours: Long-running jobs, maintenance windows
Latency Guidelines
- < 10ms: Excellent for API calls
- 10-100ms: Good for web requests
- 100-1000ms: Acceptable for complex operations
- > 1000ms: Needs optimization
Data Size Units
Understanding data sizes is crucial for bandwidth, storage, and memory monitoring.
Binary vs Decimal
Binary (IEC standard): Used for memory and storage
- 1 KiB = 1,024 bytes
- 1 MiB = 1,024 KiB = 1,048,576 bytes
Decimal (SI standard): Sometimes used for network bandwidth
- 1 kB = 1,000 bytes
- 1 MB = 1,000 kB = 1,000,000 bytes
Note: This calculator uses binary (IEC) units, which are standard in computing.
Typical Data Sizes
- Small API response: 1-10 KB
- Web page: 100-500 KB
- Image: 100 KB - 5 MB
- Video (1min): 10-50 MB
- Database backup: 1 GB - 1 TB
Frequency/Rate Units
Request rates are essential metrics for capacity planning and performance monitoring.
Scaling Examples
- 1 req/s: Small internal tool
- 10 req/s: Medium web application
- 100 req/s: Popular web service
- 1,000 req/s: High-traffic platform
- 10,000+ req/s: Large-scale system
Capacity Planning
When planning capacity, consider:
- Peak vs average load (often 2-5x difference)
- Daily patterns (business hours vs off-hours)
- Seasonal variations (holidays, events)
- Growth projections (annual growth rate)
Percentage Units
Different systems represent percentages differently, especially for precision metrics.
Decimal (0.0 - 1.0)
- Common in programming and mathematics
- Example: 0.95 = 95%
- Used in calculations
Percentage (0% - 100%)
- Most intuitive for humans
- Example: 99.9% uptime
- Standard for reporting
Basis Points
- 1 basis point = 0.01%
- Common in finance
- Example: 50 basis points = 0.5%
- Useful for small changes
Parts Per Million (ppm)
- 1 ppm = 0.0001%
- Used for very high precision
- Example: 100 ppm = 0.01% = 1 basis point
- Common in SLA contexts
Best Practices
- Be consistent with units within your organization
- Document which units you use in dashboards and alerts
- Choose appropriate precision (don't report ns for minute-long operations)
- Use standard abbreviations (ms, not millis)
- Consider your audience (business users prefer percentages over decimals)
- Automate unit conversion in monitoring tools