Mobius.plot
You're seeing just the function
plot
, go back to Mobius module for more information.
Specs
Plot the metric name to the screen
If there are tags for the metric you can pass those in the second argument:
Mobius.Charts.plot("vm.memory.total", %{some: :tag})
By default the plot will display the last 3 minutes of metric history.
However, you can pass the :from
and :to
options to look at a specific
range of time.
Mobius.plot("vm.memory.total", %{}, from: 1630619212, to: 1630619219)
You can also plot data over the last x
amount of time. Where x is an
integer. When there is no time_unit()
provided the unit is assumed to be
:second
.
Plotting data over the last 30 seconds:
Mobius.plot("vm.memory.total", %{}, last: 30)
Plotting data over the last 2 hours:
Mobius.plot("vm.memory.total", %{}, last: {2, :hour})