root/src/stratcon.conf.in

Revision 9332cdae593119fe293288b4be9f00c7ad864e5f, 3.4 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 5 years ago)

closes #129

  • 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="43191" />
30   </noits>
31
32   <iep disable="false"> <!-- false the default -->
33     <start directory="%iepdbdir%"
34            command="%iepbindir%/run-iep.sh" />
35     <queries>
36       <query id="ce6bf8d2-3dd7-11de-a45c-a7df160cba9e" topic="status">
37         select * from NoitStatus
38       </query>
39     </queries>
40   </iep>
41
42   <database>
43     <dbconfig>
44       <host>localhost</host>
45       <dbname>reconnoiter</dbname>
46       <user>stratcon</user>
47       <password>unguessable</password>
48     </dbconfig>
49     <statements>
50       <allchecks><![CDATA[
51         SELECT remote_address, id, target, module, name
52           FROM stratcon.mv_loading_dock_check_s
53       ]]></allchecks>
54       <findcheck><![CDATA[
55         SELECT remote_address, id
56           FROM stratcon.mv_loading_dock_check_s
57          WHERE sid = $1
58       ]]></findcheck>
59       <check><![CDATA[
60         INSERT INTO stratcon.loading_dock_check_s
61                     (remote_address, whence, sid, id, target, module, name)
62              VALUES ($1, 'epoch'::timestamptz + ($2 || ' seconds')::interval,
63                      stratcon.generate_sid_from_id($3), $3, $4, $5, $6)
64       ]]></check>
65       <status><![CDATA[
66         INSERT INTO stratcon.loading_dock_status_s
67                     ( whence,sid, state, availability,
68                      duration, status)
69              VALUES ('epoch'::timestamptz + ($1 || ' seconds')::interval,
70                      stratcon.generate_sid_from_id($2), $3, $4, $5, $6)
71       ]]></status>
72       <metric_numeric><![CDATA[
73         INSERT INTO stratcon.loading_dock_metric_numeric_s
74                     (whence, sid, name, value)
75              VALUES ( 'epoch'::timestamptz + ($1 || ' seconds')::interval,
76                      stratcon.generate_sid_from_id($2), $3, $4)
77       ]]></metric_numeric>
78       <metric_text><![CDATA[
79         INSERT INTO stratcon.loading_dock_metric_text_s
80                     ( whence, sid, name,value)
81              VALUES ('epoch'::timestamptz + ($1 || ' seconds')::interval,
82                      stratcon.generate_sid_from_id($2), $3, $4)
83       ]]></metric_text>
84       <config><![CDATA[
85         SELECT stratcon.update_config
86                ($1, $2,
87                 'epoch'::timestamptz + ($3 || ' seconds')::interval,
88                 $4 )
89       ]]></config>
90     </statements>
91   </database>
92
93   <listeners>
94   <consoles type="noit_console">
95     <listener address="/tmp/stratcon">
96       <config><line_protocol>telnet</line_protocol></config>
97     </listener>
98   </consoles>
99   <realtime type="stratcon_realtime_http">
100     <listener address="*" port="80">
101     </listener>
102   </realtime>
103   </listeners>
104
105 </stratcon>
Note: See TracBrowser for help on using the browser.