base unit
The plain unit a metric should be recorded in, such as seconds rather than milliseconds and bytes rather than kilobytes.
In more detail
Every dashboard and rule written later will assume base units, so mixing milliseconds and seconds produces charts that look right and are wrong by a factor of a thousand. The unit goes at the end of the name, as in _seconds or _bytes.
Related terms
- metric name — The name that identifies what a metric measures, such as http_request_duration_seconds.
- bytes, kilobytes, megabytes — Units of data size: a kilobyte is about a thousand bytes, a megabyte about a million, a gigabyte about a billion.
Taught in
- Metric Types: Counters And Gauges — Full-Stack Observability: Metrics, Tracing & Logging
- Milliseconds Versus Seconds: Naming Metrics And Labels — Prometheus Certified Associate (PCA) Exam Prep
- Instrumentation Sprint: Sixteen Calls On Code And Exporters — Prometheus Certified Associate (PCA) Exam Prep
- Seventy Seven Percent, Book Now? The Full Mock — Prometheus Certified Associate (PCA) Exam Prep