summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5299342)
raw | patch | inline | side by side (parent: 5299342)
author | Florian Forster <octo@noris.net> | |
Wed, 21 Oct 2009 09:21:30 +0000 (11:21 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Wed, 21 Oct 2009 09:21:30 +0000 (11:21 +0200) |
This is probably a much safer choice in this case.
src/processes.c | patch | blob | history | |
src/types.db | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index 3d6706504004b082ca6a6aad2f4dbf507064653c..a9cfe60b22b9b6938bee4c0ac1238f529cf8651a 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
if ( (ps->io_rchar != -1) && (ps->io_wchar != -1) )
{
- sstrncpy (vl.type, "ps_diskbytes", sizeof (vl.type));
+ sstrncpy (vl.type, "ps_disk_octets", sizeof (vl.type));
vl.values[0].counter = ps->io_rchar;
vl.values[1].counter = ps->io_wchar;
vl.values_len = 2;
if ( (ps->io_syscr != -1) && (ps->io_syscw != -1) )
{
- sstrncpy (vl.type, "ps_diskops", sizeof (vl.type));
+ sstrncpy (vl.type, "ps_disk_ops", sizeof (vl.type));
vl.values[0].counter = ps->io_syscr;
vl.values[1].counter = ps->io_syscw;
vl.values_len = 2;
diff --git a/src/types.db b/src/types.db
index aed5a22e8f34aba20c4ff9e7a1531ad7682eecaa..c8c6b98aa7a73337a68252e73c0c33feb4727498 100644 (file)
--- a/src/types.db
+++ b/src/types.db
ps_count processes:GAUGE:0:1000000, threads:GAUGE:0:1000000
ps_cputime user:COUNTER:0:16000000, syst:COUNTER:0:16000000
ps_pagefaults minflt:COUNTER:0:9223372036854775807, majflt:COUNTER:0:9223372036854775807
-ps_diskbytes read:COUNTER:0:16000000, write:COUNTER:0:16000000
-ps_diskops read:COUNTER:0:16000000, write:COUNTER:0:16000000
+ps_disk_octets read:DERIVE:0:U, write:DERIVE:0:U
+ps_disk_ops read:DERIVE:0:U, write:DERIVE:0:U
ps_rss value:GAUGE:0:9223372036854775807
ps_stacksize value:GAUGE:0:9223372036854775807
ps_state value:GAUGE:0:65535