From: Sebastian Harl Date: Sun, 1 Feb 2009 22:42:45 +0000 (+0100) Subject: collectd.conf: Updated the example postgresql plugin configuration. X-Git-Tag: collectd-4.6.0~79 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f25e41d212334682fce74da0824ac55038cab8f2;p=collectd.git collectd.conf: Updated the example postgresql plugin configuration. --- diff --git a/src/collectd.conf.in b/src/collectd.conf.in index 861d22c5..15ae7f7c 100644 --- a/src/collectd.conf.in +++ b/src/collectd.conf.in @@ -343,26 +343,41 @@ FQDNLookup true # # -# Query "SELECT magic, spells FROM wizard WHERE host = $1;" +# Statement "SELECT magic FROM wizard WHERE host = $1;" # Param hostname -# Column gauge magic -# Column counter spells +# +# Type gauge +# InstancePrefix "magic" +# ValuesFrom magic +# +# +# +# Statement "SELECT COUNT(type) AS count, type \ +# FROM (SELECT CASE \ +# WHEN resolved = 'epoch' THEN 'open' \ +# ELSE 'resolved' END AS type \ +# FROM tickets) type \ +# GROUP BY type;" +# +# Type counter +# InstancePrefix "rt36_tickets" +# InstancesFrom "type" +# ValuesFrom "count" +# # -# # # Host "hostname" -# Port 5432 +# Port "5432" # User "username" # Password "secret" -# # SSLMode "prefer" # KRBSrvName "kerberos_service_name" -# # Query magic # -# # # Service "service_name" +# Query backend # predefined +# Query rt36_tickets # #