summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 91d1e0b)
raw | patch | inline | side by side (parent: 91d1e0b)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 17 Jul 2013 09:59:57 +0000 (11:59 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 17 Jul 2013 09:59:57 +0000 (11:59 +0200) |
src/df.c | patch | blob | history | |
src/types.db | patch | blob | history |
diff --git a/src/df.c b/src/df.c
index 540985d798ea46da3d12ad24aec2e638a0075643..4936cc0c3eda2a7ddfe9cc17a6e6c9cfb6ddfe1b 100644 (file)
--- a/src/df.c
+++ b/src/df.c
{
if (statbuf.f_blocks > 0)
{
- df_submit_one (disk_name, "df_complex_pct", "free",
+ df_submit_one (disk_name, "percent_bytes", "free",
(gauge_t) ((float_t)(blk_free) / statbuf.f_blocks * 100));
- df_submit_one (disk_name, "df_complex_pct", "reserved",
+ df_submit_one (disk_name, "percent_bytes", "reserved",
(gauge_t) ((float_t)(blk_reserved) / statbuf.f_blocks * 100));
- df_submit_one (disk_name, "df_complex_pct", "used",
+ df_submit_one (disk_name, "percent_bytes", "used",
(gauge_t) ((float_t)(blk_used) / statbuf.f_blocks * 100));
}
else return (-1);
{
if (statbuf.f_files > 0)
{
- df_submit_one (disk_name, "df_inodes_pct", "free",
+ df_submit_one (disk_name, "percent_inodes", "free",
(gauge_t) ((float_t)(inode_free) / statbuf.f_files * 100));
- df_submit_one (disk_name, "df_inodes_pct", "reserved",
+ df_submit_one (disk_name, "percent_inodes", "reserved",
(gauge_t) ((float_t)(inode_reserved) / statbuf.f_files * 100));
- df_submit_one (disk_name, "df_inodes_pct", "used",
+ df_submit_one (disk_name, "percent_inodes", "used",
(gauge_t) ((float_t)(inode_used) / statbuf.f_files * 100));
}
else return (-1);
diff --git a/src/types.db b/src/types.db
index 9ac3e0a9ef2f254bb22125683ca16c2bb0559f6b..f1d30f0d1a17df08e41124ce73bac2fde3c0e240 100644 (file)
--- a/src/types.db
+++ b/src/types.db
derive value:DERIVE:0:U
df_complex value:GAUGE:0:U
df_inodes value:GAUGE:0:U
-df_complex_pct value:GAUGE:0:100.1
-df_inodes_pct value:GAUGE:0:100.1
df used:GAUGE:0:1125899906842623, free:GAUGE:0:1125899906842623
disk_latency read:GAUGE:0:U, write:GAUGE:0:U
disk_merged read:DERIVE:0:U, write:DERIVE:0:U
objects value:GAUGE:0:U
operations value:DERIVE:0:U
percent value:GAUGE:0:100.1
+percent_bytes value:GAUGE:0:100.1
+percent_inodes value:GAUGE:0:100.1
pf_counters value:DERIVE:0:U
pf_limits value:DERIVE:0:U
pf_source value:DERIVE:0:U