scale(set[], options)

Given an arbitrary number of series, returns a set of equal length where each value has been multiplied by the transform factor in the options map. The one supported option is:

  • factor - Number by which to multiply every value in the input series by. This value can be represented as a float value, eg. “0.1”, “1.34”, “1024”, etc. or as a simple fraction: “1/1024” (regex: `\d+/\d+`). The second format is provided as a convenience method so that common transforms (bytes->kilobytes) can be done without having to calculate the fractional float values.
scale(s("collectd.memory.memory.used", "prod.web*"), {factor:"1/1048576"})