Code

collectd.conf: Added example PostgreSQL writer configuration.
authorSebastian Harl <sh@teamix.net>
Tue, 20 Nov 2012 12:17:00 +0000 (13:17 +0100)
committerSebastian Harl <sh@teamix.net>
Tue, 20 Nov 2012 12:17:00 +0000 (13:17 +0100)
debian/collectd.conf

index 1dde5b6afd9dfc96cf7e673f553b79fe0577bf38..8130154c96651fa6e366875538c500e26521bdac 100644 (file)
@@ -682,6 +682,12 @@ LoadPlugin users
 #              </Result>
 #      </Query>
 #
+#      <Writer sqlstore>
+#              # See /usr/share/doc/collectd-core/examples/postgresql/collectd_insert.sql for details
+#              Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
+#              StoreRates true
+#      </Writer>
+#
 #      <Database foo>
 #              Host "hostname"
 #              Port 5432
@@ -701,6 +707,13 @@ LoadPlugin users
 #              Query backend # predefined
 #              Query rt36_tickets
 #      </Database>
+#
+#      <Database qux>
+#              Service "collectd_store"
+#              Writer sqlstore
+#              # see collectd.conf(5) for details
+#              CommitInterval 30
+#      </Database>
 #</Plugin>
 
 #<Plugin powerdns>