root/src/stratcon.conf

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

fix this up to work

  • Property mode set to 100644
Line 
1 <stratcon>
2   <eventer implementation="kqueue" />
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, target, module, name)
41              VALUES ($1, 'epoch'::timestamptz + ($2 || ' seconds')::interval,
42                      stratcon.generate_sid_from_id($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     </statements>
64   </database>
65
66   <listeners>
67   <consoles type="noit_console">
68     <listener address="/tmp/stratcon">
69       <config><line_protocol>telnet</line_protocol></config>
70     </listener>
71   </consoles>
72   </listeners>
73
74 </stratcon>
Note: See TracBrowser for help on using the browser.