Code

battery: add missing capacity type to types.db
authorMarc Fournier <marc.fournier@camptocamp.com>
Fri, 6 Nov 2015 08:32:40 +0000 (09:32 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Fri, 6 Nov 2015 08:32:40 +0000 (09:32 +0100)
For the record, "capacity" was introduced by a2e732f8.

Also fix a bogus example in collectd.conf.

Thanks to @ryan-williams for reporting the problem !

Fix #1338

src/collectd.conf.in
src/types.db

index 38a053498f19ee851a8d6a1d75ee0cb7bcc83a3c..729aa032d0caa2bd4df5711acd2b4af0b50a4839 100644 (file)
 
 #<Plugin "battery">
 #  ValuesPercentage false
-#  ReportDegraded
+#  ReportDegraded false
 #</Plugin>
 
 #<Plugin "bind">
index 38fb546c867170f43eada049718786e46e6a1060..c605f56d603ce5d680a8f7b7180c27ab6e647f53 100644 (file)
@@ -15,6 +15,7 @@ cache_operation               value:DERIVE:0:U
 cache_ratio            value:GAUGE:0:100
 cache_result           value:DERIVE:0:U
 cache_size             value:GAUGE:0:U
+capacity       value:GAUGE:0:U
 ceph_bytes             value:GAUGE:U:U
 ceph_latency   value:GAUGE:U:U
 ceph_rate                      value:DERIVE:0:U