root/src/stratcon.conf.in

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

alter this to support testing out of the box

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