Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
_ti( _args, self.i18n:title( plugin, plugin_instance, _sources[1].type, instance, opts.title ) )
_ti( _args, "-v" )
_ti( _args, self.i18n:label( plugin, plugin_instance, _sources[1].type, instance, opts.vlabel ) )
_ti( _args, self.i18n:title( plugin, plugin_instance, _sources[1].type, instance, opts.title ) )
_ti( _args, "-v" )
_ti( _args, self.i18n:label( plugin, plugin_instance, _sources[1].type, instance, opts.vlabel ) )
+ if opts.y_max then
+ _ti ( _args, "-u" )
+ _ti ( _args, opts.y_max )
+ end
+ if opts.y_min then
+ _ti ( _args, "-l" )
+ _ti ( _args, opts.y_min )
+ end
+ if opts.units_exponent then
+ _ti ( _args, "-X" )
+ _ti ( _args, opts.units_exponent )
+ end
-- store additional rrd options
if opts.rrdopts then
-- store additional rrd options
if opts.rrdopts then
return {
title = "%H: Processor usage on core #%pi",
return {
title = "%H: Processor usage on core #%pi",
vlabel = "Percent",
number_format = "%5.1lf%%",
data = {
vlabel = "Percent",
number_format = "%5.1lf%%",
data = {
return {
title = "%H: Load", vlabel = "Load",
return {
title = "%H: Load", vlabel = "Load",
+ y_min = "0",
+ units_exponent = "0",
number_format = "%5.2lf", data = {
sources = {
load = { "shortterm", "midterm", "longterm" }
number_format = "%5.2lf", data = {
sources = {
load = { "shortterm", "midterm", "longterm" }
local percentage = {
title = "%H: Battery charge on UPS \"%pi\"",
vlabel = "Percent",
local percentage = {
title = "%H: Battery charge on UPS \"%pi\"",
vlabel = "Percent",
+ y_min = "0",
+ y_max = "100",
number_format = "%5.1lf%%",
data = {
sources = {
number_format = "%5.1lf%%",
data = {
sources = {