luci/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/ping.lua
Hannu Nyman b7b6ed740b statistics: fix ping graph label regression
Earlier update to collectd 5.4.1 changed the field from "ping" to "value",
which was changed in the graph definition here, but the label definition
was forgotten. Field's label now reads "ping_IPaddr_value".

Correct the label definition to show only IPaddr like the other two graphs.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-08-19 10:56:30 +03:00

29 lines
921 B
Lua

-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.ping", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
-- Ping roundtrip time
{ title = "%H: ICMP Round Trip Time", vlabel = "ms",
number_format = "%5.1lf ms", data = {
sources = { ping = { "value" } },
options = { ping__value = { noarea = true, title = "%di" } }
} },
-- Ping droprate
{ title = "%H: ICMP Drop Rate", vlabel = "%",
number_format = "%5.2lf %%", data = {
types = { "ping_droprate" },
options = { ping_droprate = { title = "%di" } }
} },
-- Ping standard deviation
{ title = "%H: ICMP Standard Deviation", vlabel = "ms",
number_format = "%5.2lf ms", data = {
types = { "ping_stddev" },
options = { ping_stddev = { title = "%di" } }
} },
}
end