Metric Units
Metoro uses the Unified Code for Units of Measure (UCUM) standard for representing metric units. This ensures consistent and unambiguous unit representation across all metrics, whether they’re automatically generated by Metoro or custom metrics sent via OpenTelemetry.
Setting Units
Units can be specified at different levels in Metoro:
- Source Units: The unit exported with the metric itself, declared at the metric instantiation time in the emitting service.
- Metric Catalog Override: A global unit override that can be set in the Metric Catalog for any metric.
- Chart Level Override: A unit override that can be set at the individual chart level when creating or editing a chart.
When displaying metrics, the unit is determined by the following precedence:
- Chart Level Override: If a chart has a specific unit override, that unit is used for display.
- Metric Catalog Override: If no chart-level override exists, the unit defined in the Metric Catalog for that metric is used.
- Source Unit: If neither of the above overrides exists, the unit specified in the metric source is used.
- Default Unit: If no unit is specified at any level, Metoro will use the dimensionless unit
1
(no unit).
Ideally you should always set a unit at the metric source level, as this provides the most accurate representation of the metric’s meaning. However, this is not always possible, for example when using third-party libraries, exporter services etc. In these cases, you should add a unit override in the Metric Catalog level. This will ensure that all charts using this metric will display the correct unit. Finally, if you need to add a unit override for a specific chart, you can do so in the chart settings. This is often useful when combining multiple metrics with different units in the same chart, or when you want to display a metric in a different unit for a specific audience or use case.
Custom Units
If you need to use a unit that’s not in the standard UCUM list, Metoro allows you to specify custom units. When setting a unit override in the UI, you can type any string value and it will be accepted as a custom unit.
Custom units are useful for:
- Domain-specific measurements
- Business metrics with specialized units
- Temporary units during development
To use a custom unit:
- In the unit selector dropdown, type your custom unit name
- Press Enter or select the “(custom)” option that appears
- The custom unit will be used for display
Note: Custom units won’t have automatic scaling or conversion capabilities like standard UCUM units.
Unit Conversion and Display
Metoro automatically converts units for optimal display:
- Large byte values are converted to KiB, MiB, GiB, etc.
- Time values are converted to appropriate scales (ms to seconds, seconds to minutes, etc.)
- Timestamps are displayed as human-readable dates
- Currency values are displayed with K/M/B/T suffixes for thousands/millions/billions/trillions
This automatic scaling ensures that values are always displayed in a human-readable format without losing precision.
Mixing multiple Units in a Chart
If all constituent visible metrics in a chart have the same unit, that unit will be used for the y axis label. If the metrics have different units, there will be no y axis label. Each constituent metric will have its own unit label visible in the tooltip when hovering over datapoints.
UCUM Unit Reference
If you are defining the unit in your metric source, you can use any of the standard UCUM units. Metoro supports a wide range of units across different categories, including:
Dimensionless
1
- dimensionless (no unit)%
- percent
Application Metrics
{requests}/s
- requests per second{errors}/s
- errors per second{ops}/s
- operations per second{transactions}/s
- transactions per second{packets}/s
- packets per second{messages}/s
- messages per second{events}/s
- events per second
Information (Binary - Base 1024)
By
- byteKiBy
- kibibyte (1024 bytes)MiBy
- mebibyte (1024² bytes)GiBy
- gibibyte (1024³ bytes)TiBy
- tebibyte (1024⁴ bytes)PiBy
- pebibyte (1024⁵ bytes)
Information (Decimal - Base 1000)
bit
- bitkBy
- kilobyte (1000 bytes)MBy
- megabyte (10⁶ bytes)GBy
- gigabyte (10⁹ bytes)TBy
- terabyte (10¹² bytes)PBy
- petabyte (10¹⁵ bytes)
Data Rate
Binary (Base 1024)
By/s
- bytes per secondKiBy/s
- kibibytes per secondMiBy/s
- mebibytes per secondGiBy/s
- gibibytes per secondTiBy/s
- tebibytes per second
Decimal (Base 1000)
kBy/s
- kilobytes per secondMBy/s
- megabytes per secondGBy/s
- gigabytes per second
Bits
bit/s
- bits per secondkbit/s
- kilobits per secondMbit/s
- megabits per secondGbit/s
- gigabits per second
System Resources
{connections}
- active connections{threads}
- active threads{processes}
- active processes{users}
- active users{sessions}
- active sessions{CPU}
- CPU cores%{CPU}
- CPU usage percentage%{memory}
- memory usage percentage%{disk}
- disk usage percentage%{network}
- network usage percentage
Time
ns
- nanosecondus
- microsecond (μs)ms
- milliseconds
- secondmin
- minuteh
- hourd
- daywk
- weekmo
- montha
- year
Frequency
Hz
- hertzkHz
- kilohertzMHz
- megahertzGHz
- gigahertz/s
- per second/min
- per minute/h
- per hour/d
- per day
Timestamps
unix_s
- Unix timestamp (seconds)unix_ms
- Unix timestamp (milliseconds)unix_us
- Unix timestamp (microseconds)unix_ns
- Unix timestamp (nanoseconds)
Temperature
K
- kelvinCel
- Celsius (°C)[degF]
- Fahrenheit (°F)
Power
W
- wattkW
- kilowattMW
- megawattGW
- gigawatt[hp]
- horsepower
Electric Units
Voltage
V
- voltmV
- millivoltkV
- kilovolt
Current
A
- amperemA
- milliampereA.h
- ampere hourmA.h
- milliampere hour
Resistance
Ohm
- ohm (Ω)kOhm
- kiloohm (kΩ)MOhm
- megaohm (MΩ)
Capacitance
F
- faraduF
- microfarad (μF)nF
- nanofaradpF
- picofarad
Inductance
H
- henrymH
- millihenryuH
- microhenry (μH)
Charge
C
- coulomb
Physical Units
Length
- Metric:
nm
,um
,mm
,cm
,dm
,m
,km
- Imperial:
[in_i]
,[ft_i]
,[yd_i]
,[mi_i]
Mass
- Metric:
ng
,ug
,mg
,g
,kg
,t
- Imperial:
[oz_av]
,[lb_av]
Area
- Metric:
mm2
,cm2
,m2
,km2
,har
(hectare) - Imperial:
[sin_i]
,[sft_i]
Volume
- Metric:
ml
,l
,m3
- Imperial:
[foz_us]
,[pt_us]
,[qt_us]
,[gal_us]
Speed
m/s
- meters per secondkm/h
- kilometers per hour[mi_i]/h
- miles per hour[kn_i]
- knot
Force
N
- newtonkN
- kilonewton[lbf_av]
- pound force
Pressure
Pa
- pascalkPa
- kilopascalMPa
- megapascalbar
- barmbar
- millibaratm
- atmospheremm[Hg]
- millimeter of mercury[psi]
- pounds per square inch
Energy
J
- joulekJ
- kilojouleMJ
- megajoulecal
- caloriekcal
- kilocalorieW.h
- watt hourkW.h
- kilowatt hourMW.h
- megawatt hour[Btu_IT]
- British thermal unit
Concentration
mol/l
- molarmmol/l
- millimolarumol/l
- micromolar (μmol/l)nmol/l
- nanomolarg/l
- grams per litermg/l
- milligrams per literug/l
- micrograms per liter (μg/l)ng/l
- nanograms per liter
Currency
Metoro supports major world currencies:
{USD}
- US Dollar{EUR}
- Euro{GBP}
- British Pound{JPY}
- Japanese Yen{CNY}
- Chinese Yuan{CHF}
- Swiss Franc{CAD}
- Canadian Dollar{AUD}
- Australian Dollar- And many more…
Currency rates (per time unit):
{USD}/s
- USD per second{USD}/min
- USD per minute{USD}/h
- USD per hour{USD}/d
- USD per day{USD}/mo
- USD per month