Display Grafana values with unit without automatic change of metric prefix

Viewed 147

I would like that grafana shows only the values in MB and not a mix of MB and GB. How can I force Grafana to use a single unit only?

Graph

1 Answers

When you are using any unit that is built into Grafana (i.e. selectable in the Unit setting), it'll adjust automatically for large/small numbers with an appropriate metric prefix.

A workaround to have always the same unit displayed instead of the metric prefix automatically adjusted is to set it as custom unit. You can do it like that:

  1. Go to the Unit selection.
  2. Type your unit into the dropdown field, for example XY
  3. Select the last option, that will be Custom unit: XY

This will also work for MB, but only if you select Custom unit: MB.

Related