summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8ce9aef)
raw | patch | inline | side by side (parent: 8ce9aef)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 1 Feb 2009 22:42:45 +0000 (23:42 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 1 Feb 2009 22:42:45 +0000 (23:42 +0100) |
src/collectd.conf.in | patch | blob | history |
diff --git a/src/collectd.conf.in b/src/collectd.conf.in
index 861d22c521eaedd11ca5c7a50b4f05fcbe13059c..15ae7f7cc4e3a2716b5ae0bbf7d06b7267481d4f 100644 (file)
--- a/src/collectd.conf.in
+++ b/src/collectd.conf.in
#<Plugin postgresql>
# <Query magic>
-# 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
+# <Result>
+# Type gauge
+# InstancePrefix "magic"
+# ValuesFrom magic
+# </Result>
+# </Query>
+# <Query rt36_tickets>
+# 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;"
+# <Result>
+# Type counter
+# InstancePrefix "rt36_tickets"
+# InstancesFrom "type"
+# ValuesFrom "count"
+# </Result>
# </Query>
-#
# <Database foo>
# Host "hostname"
-# Port 5432
+# Port "5432"
# User "username"
# Password "secret"
-#
# SSLMode "prefer"
# KRBSrvName "kerberos_service_name"
-#
# Query magic
# </Database>
-#
# <Database bar>
# Service "service_name"
+# Query backend # predefined
+# Query rt36_tickets
# </Database>
#</Plugin>