luci-app-statistics: Adjust ping graphs to show target hosts separately
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / ping.lua
1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 module("luci.statistics.rrdtool.definitions.ping", package.seeall)
5
6 function rrdargs( graph, plugin, plugin_instance, dtype )
7 return {
8 -- Ping roundtrip time
9 { title = "%H: ICMP Round Trip Time",
10 vlabel = "ms",
11 number_format = "%5.1lf ms",
12 data = {
13 sources = { ping = { "value" } },
14 options = { ping__value = {
15 noarea = true, overlay = true, title = "%di" } }
16 } },
17
18 -- Ping droprate
19 { title = "%H: ICMP Drop Rate",
20 vlabel = "%",
21 number_format = "%5.2lf %%",
22 data = {
23 types = { "ping_droprate" },
24 options = { ping_droprate = {
25 noarea = true, overlay = true, title = "%di" } }
26 } },
27
28 -- Ping standard deviation
29 { title = "%H: ICMP Standard Deviation",
30 vlabel = "ms",
31 number_format = "%5.2lf ms",
32 data = {
33 types = { "ping_stddev" },
34 options = { ping_stddev = {
35 noarea = true, overlay = true, title = "%di" } }
36 } },
37 }
38 end