summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 60c387c)
raw | patch | inline | side by side (parent: 60c387c)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 12 Apr 2010 12:08:33 +0000 (14:08 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 12 Apr 2010 12:08:33 +0000 (14:08 +0200) |
src/pinba.c | patch | blob | history | |
src/types.db | patch | blob | history |
diff --git a/src/pinba.c b/src/pinba.c
index 8ddd9966c71d890b3b5e8e4319b4f32b7dd601e3..a6fd06fe2d56352a0a7e29cba18b394dd32559d2 100644 (file)
--- a/src/pinba.c
+++ b/src/pinba.c
sstrncpy (vl.plugin_instance, res->name, sizeof (vl.plugin_instance));
value.derive = res->req_count;
- sstrncpy (vl.type, "requests", sizeof (vl.type));
+ sstrncpy (vl.type, "total_requests", sizeof (vl.type));
plugin_dispatch_values (&vl);
value.derive = float_counter_get (&res->req_time, /* factor = */ 1000);
sstrncpy (vl.type, "total_time_in_ms", sizeof (vl.type));
plugin_dispatch_values (&vl);
+ value.derive = res->doc_size;
+ sstrncpy (vl.type, "total_bytes", sizeof (vl.type));
+ plugin_dispatch_values (&vl);
+
value.derive = float_counter_get (&res->ru_utime, /* factor = */ 100);
sstrncpy (vl.type, "cpu", sizeof (vl.type));
sstrncpy (vl.type_instance, "user", sizeof (vl.type_instance));
diff --git a/src/types.db b/src/types.db
index a1bcc28d67880c12408310c806dd641d538976a8..69301b2755aa92230125c46bc94f053a4205b3b2 100644 (file)
--- a/src/types.db
+++ b/src/types.db
time_dispersion seconds:GAUGE:-1000000:1000000
timeleft timeleft:GAUGE:0:3600
time_offset seconds:GAUGE:-1000000:1000000
+total_bytes value:DERIVE:0:U
total_requests value:DERIVE:0:U
total_time_in_ms value:DERIVE:0:U
total_values value:DERIVE:0:U