rrd::plugin::dbstats proc update (public)

 rrd::plugin::dbstats[i] update

Defined in packages/rrd-tool/tcl/rrd-procs.tcl

Get db-statistics from [ns_db stats]

Testcases:
No testcase defined.
Source code:
#
# 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
  }
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: