Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ class PrometheusUnitsHelper {
initUnit("KiBy", "kibibytes", "kibibyte");
initUnit("MiBy", "mebibytes", "mebibyte");
initUnit("GiBy", "gibibytes", "gibibyte");
initUnit("TiBy", "tibibytes", "tibibyte");
initUnit("TiBy", "tebibytes", "tebibyte");
initUnit("kBy", "kilobytes", "kilobyte");
// Upper case K is kelvin in UCUM, but keep it as an alias for existing users.
initUnit("KBy", "kilobytes", "kilobyte");
initUnit("MBy", "megabytes", "megabyte");
initUnit("GBy", "gigabytes", "gigabyte");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ private static Stream<Arguments> providePrometheusOTelUnitEquivalentPairs() {
return Stream.of(
Arguments.argumentSet("bytes", "By", "bytes"),
Arguments.argumentSet("kilobytes", "KBy", "kilobytes"),
Arguments.argumentSet("kilobytes lowercase k", "kBy", "kilobytes"),
Arguments.argumentSet("megabytes", "MBy", "megabytes"),
Arguments.argumentSet("gigabytes", "GBy", "gigabytes"),
Arguments.argumentSet("terabytes", "TBy", "terabytes"),
Arguments.argumentSet("kibibytes", "KiBy", "kibibytes"),
Arguments.argumentSet("mebibytes", "MiBy", "mebibytes"),
Arguments.argumentSet("gibibytes", "GiBy", "gibibytes"),
Arguments.argumentSet("tibibytes", "TiBy", "tibibytes"),
Arguments.argumentSet("tebibytes", "TiBy", "tebibytes"),
Arguments.argumentSet("days", "d", "days"),
Arguments.argumentSet("hours", "h", "hours"),
Arguments.argumentSet("seconds", "s", "seconds"),
Expand Down
Loading