Code

collectd.conf: Added example PostgreSQL writer configuration. sh/collectd-5.2
authorSebastian Harl <sh@tokkee.org>
Tue, 20 Nov 2012 12:13:01 +0000 (13:13 +0100)
committerSebastian Harl <sh@tokkee.org>
Tue, 20 Nov 2012 12:13:01 +0000 (13:13 +0100)
src/collectd.conf.in

index daf2d9a8dcf58eb86fa3d8c734b7f5fc6c3bce91..db81a4ad5241c36ad0135a035c47051a1f9c4afd 100644 (file)
 #                      ValuesFrom "count"
 #              </Result>
 #      </Query>
+#      <Writer sqlstore>
+#              # See contrib/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"
 #              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>