- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class Relations
::rrd::Plugin create ::rrd::plugin::dbstats
Methods (to be applied on the object)
update (scripted, public)
rrd::plugin::dbstats update
Get db-statistics from [ns_db stats]
- Testcases:
- No testcase defined.
# # Get db-statistics from [ns_db stats] # set pairs [ns_db stats] foreach {p values} $pairs { foreach {key value} $values { set varName $p-$key if {$varName ni ${:vars}} continue if {![string is integer -strict $value]} { # assume floating point number in secs, compute ms set value [expr {round ($value*1000)}] } :updateDataSource $varName $value } }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables