luci/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/curl.lua
Chizhong Jin 2d1830422b pp-statistics: add support for cUrl
Add collectd-mod-curl plugin support. Which can do some complex track,
such as grab stock, but by now, only response time are supported.

Signed-off-by: Chizhong Jin <pjincz@gmail.com>
2018-10-14 02:34:49 +08:00

22 lines
509 B
Lua

-- Copyright 2018 Chizhong Jin <pjincz@gmail.com>
-- Licensed to the public under the BSD 3-clause license
module("luci.statistics.rrdtool.definitions.curl", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
title = "%H: cUrl Response Time for #%pi",
y_min = "0",
alt_autoscale_max = true,
vlabel = "Response Time",
number_format = "%5.1lf%Ss",
data = {
types = { "response_time" },
options = {
response_time = {
title = ""
}
}
}
}
end