summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a65b0cc)
raw | patch | inline | side by side (parent: a65b0cc)
author | Jeremy Katz <jeremy@katzbox.net> | |
Fri, 28 Nov 2014 05:33:39 +0000 (00:33 -0500) | ||
committer | Jeremy Katz <jeremy@katzbox.net> | |
Fri, 28 Nov 2014 05:33:39 +0000 (00:33 -0500) |
src/types.db | patch | blob | history | |
src/zookeeper.c | patch | blob | history |
diff --git a/src/types.db b/src/types.db
index 2bf7a1725035bf4f9996fad5488dd85b9c8e3906..c9d6e1ae582bf001aeab83abea8cd567d347a017 100644 (file)
--- a/src/types.db
+++ b/src/types.db
conntrack value:GAUGE:0:4294967295
contextswitch value:DERIVE:0:U
count value:GAUGE:0:U
-counter value:COUNTER:U:U
cpufreq value:GAUGE:0:U
cpu value:DERIVE:0:U
current_connections value:GAUGE:0:U
vs_memory value:GAUGE:0:9223372036854775807
vs_processes value:GAUGE:0:65535
vs_threads value:GAUGE:0:65535
-zk_approximate_data_size value:GAUGE:0:U
#
# Legacy types
diff --git a/src/zookeeper.c b/src/zookeeper.c
index e80ed4d216db016c74da0f591deeb8dffa9199ec..7f1ea33b0f91f167ebcaebb9d4ca3a059f45ca94 100644 (file)
--- a/src/zookeeper.c
+++ b/src/zookeeper.c
}
else if (FIELD_CHECK (fields[0], "zk_znode_count"))
{
- zookeeper_submit_gauge ("count", "znode", atol(fields[1]));
+ zookeeper_submit_gauge ("gauge", "znode", atol(fields[1]));
}
else if (FIELD_CHECK (fields[0], "zk_watch_count"))
{
- zookeeper_submit_gauge ("count", "watch", atol(fields[1]));
+ zookeeper_submit_gauge ("gauge", "watch", atol(fields[1]));
}
else if (FIELD_CHECK (fields[0], "zk_ephemerals_count"))
{
- zookeeper_submit_gauge ("count", "ephemerals", atol(fields[1]));
+ zookeeper_submit_gauge ("gauge", "ephemerals", atol(fields[1]));
}
else if (FIELD_CHECK (fields[0], "zk_ephemerals_count"))
{
- zookeeper_submit_gauge ("count", "ephemerals", atol(fields[1]));
+ zookeeper_submit_gauge ("gauge", "ephemerals", atol(fields[1]));
}
else if (FIELD_CHECK (fields[0], "zk_ephemerals_count"))
{
- zookeeper_submit_gauge ("count", "ephemerals", atol(fields[1]));
+ zookeeper_submit_gauge ("gauge", "ephemerals", atol(fields[1]));
}
else if (FIELD_CHECK (fields[0], "zk_approximate_data_size"))
{
- zookeeper_submit_gauge ("zk_approximate_data_size", NULL, atol(fields[1]));
+ zookeeper_submit_gauge ("bytes", "approximate_data_size", atol(fields[1]));
}
else if (FIELD_CHECK (fields[0], "zk_followers"))
{