How to Divide Y-Axis Values by 1024 in Grafana?

Hi everyone,

I’m working with a Grafana panel that displays memory usage(in Bytes) over time, and I would like to divide the Y-axis values by 1024 to convert the data from bytes to kilobytes or megabytes (depending on the desired unit).

I’ve tried the following approaches but haven’t had success:

  1. I couldn’t find a Math transformation to apply a division operation.
  2. There’s no Calculate Field transformation available in my Grafana instance.
  3. I attempted to use Field Overrides by changing the unit (e.g., to MiB), but this didn’t apply the division I was expecting.

I’m using Grafana version v11.1.0 and would appreciate guidance on how to achieve this.

Has anyone successfully divided Y-axis values in Grafana? Is there a specific transformation, expression, or plugin that can accomplish this?

Thanks in advance!

Set unit to bytes. Grafana will convert/use SI prefix automatically based on your values, e. g. MiB, GiB,…

1 Like