root/src/stratcon.conf

Revision 4f6de158923dd98b2ae05e8152eb38ec6e6b9d1d, 2.6 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

a specific implementation should not be in the sample config, refs #43

  • Property mode set to 100644
Line 
1 <stratcon>
2   <eventer/>
3
4   <logs>
5     <console_output>
6       <outlet name="stderr"/>
7       <log name="error"/>
8       <log name="debug" disabled="true"/>
9     </console_output>
10   </logs>
11
12   <noits>
13     <config>
14       <!--
15         If we have a connection failure, attempt to reconnect
16         immediately.  Upon failure wait 1000ms (1s) and
17         exponentially backoff up to 900000ms (900s or 15m)
18       -->
19       <reconnect_initial_interval>1000</reconnect_initial_interval>
20       <reconnect_maximum_interval>15000</reconnect_maximum_interval>
21     </config>
22     <sslconfig>
23       <key_file>../test/test-stratcon.key</key_file>
24       <certificate_file>../test/test-stratcon.crt</certificate_file>
25       <ca_chain>../test/test-ca.crt</ca_chain>
26     </sslconfig>
27     <noit address="127.0.0.1" port="34332" />
28   </noits>
29
30   <database>
31     <dbconfig>
32       <host>postgres83dev.office.omniti.com</host>
33       <dbname>reconnoiter</dbname>
34       <user>stratcon</user>
35       <password>stratcon</password>
36     </dbconfig>
37     <statements>
38       <check><![CDATA[
39         INSERT INTO stratcon.loading_dock_check_s
40                     (remote_address, whence, sid, id, target, module, name)
41              VALUES ($1, 'epoch'::timestamptz + ($2 || ' seconds')::interval,
42                      stratcon.generate_sid_from_id($3), $3, $4, $5, $6)
43       ]]></check>
44       <status><![CDATA[
45         INSERT INTO stratcon.loading_dock_status_s
46                     ( whence,sid, state, availability,
47                      duration, status)
48              VALUES ('epoch'::timestamptz + ($1 || ' seconds')::interval,
49                      stratcon.generate_sid_from_id($2), $3, $4, $5, $6)
50       ]]></status>
51       <metric_numeric><![CDATA[
52         INSERT INTO stratcon.loading_dock_metric_numeric_s
53                     (whence, sid, name, value)
54              VALUES ( 'epoch'::timestamptz + ($1 || ' seconds')::interval,
55                      stratcon.generate_sid_from_id($2), $3, $4)
56       ]]></metric_numeric>
57       <metric_text><![CDATA[
58         INSERT INTO stratcon.loading_dock_metric_text_s
59                     ( whence, sid, name,value)
60              VALUES ('epoch'::timestamptz + ($1 || ' seconds')::interval,
61                      stratcon.generate_sid_from_id($2), $3, $4)
62       ]]></metric_text>
63       <config><![CDATA[
64         SELECT stratcon.update_config
65                ($1, $2,
66                 'epoch'::timestamptz + ($3 || ' seconds')::interval,
67                 $4 )
68       ]]></config>
69     </statements>
70   </database>
71
72   <listeners>
73   <consoles type="noit_console">
74     <listener address="/tmp/stratcon">
75       <config><line_protocol>telnet</line_protocol></config>
76     </listener>
77   </consoles>
78   </listeners>
79
80 </stratcon>
Note: See TracBrowser for help on using the browser.