root/src/stratcon.conf.in

Revision 9d912628f9c34c2d71a0893d6fb80b5c3730e7f1, 3.6 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 5 years ago)

pull the realtime HTML document.domain from the config file... refs #145

  • 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/iep"/>
10       <log name="error/eventer" disabled="true"/>
11       <log name="debug/eventer" disabled="true"/>
12     </console_output>
13   </logs>
14
15   <noits>
16     <config>
17       <!--
18         If we have a connection failure, attempt to reconnect
19         immediately.  Upon failure wait 1000ms (1s) and
20         exponentially backoff up to 900000ms (900s or 15m)
21       -->
22       <reconnect_initial_interval>1000</reconnect_initial_interval>
23       <reconnect_maximum_interval>15000</reconnect_maximum_interval>
24     </config>
25     <sslconfig>
26       <key_file>%sysconfdir%/%PKIPREFIX%stratcon.key</key_file>
27       <certificate_file>%sysconfdir%/%PKIPREFIX%stratcon.crt</certificate_file>
28       <ca_chain>%sysconfdir%/%PKIPREFIX%ca.crt</ca_chain>
29     </sslconfig>
30     <noit address="127.0.0.1" port="43191" />
31   </noits>
32
33   <iep disable="false"> <!-- false the default -->
34     <start directory="%iepdbdir%"
35            command="%iepbindir%/run-iep.sh" />
36     <queries>
37       <query id="ce6bf8d2-3dd7-11de-a45c-a7df160cba9e" topic="status">
38         select * from NoitStatus
39       </query>
40     </queries>
41   </iep>
42
43   <database>
44     <dbconfig>
45       <host>localhost</host>
46       <dbname>reconnoiter</dbname>
47       <user>stratcon</user>
48       <password>unguessable</password>
49     </dbconfig>
50     <statements>
51       <allchecks><![CDATA[
52         SELECT remote_address, id, target, module, name
53           FROM stratcon.mv_loading_dock_check_s
54       ]]></allchecks>
55       <findcheck><![CDATA[
56         SELECT remote_address, id
57           FROM stratcon.mv_loading_dock_check_s
58          WHERE sid = $1
59       ]]></findcheck>
60       <check><![CDATA[
61         INSERT INTO stratcon.loading_dock_check_s
62                     (remote_address, whence, sid, id, target, module, name)
63              VALUES ($1, 'epoch'::timestamptz + ($2 || ' seconds')::interval,
64                      stratcon.generate_sid_from_id($3), $3, $4, $5, $6)
65       ]]></check>
66       <status><![CDATA[
67         INSERT INTO stratcon.loading_dock_status_archive_%Y%m
68                     ( whence,sid, state, availability,
69                      duration, status)
70              VALUES ('epoch'::timestamptz + ($1 || ' seconds')::interval,
71                      stratcon.generate_sid_from_id($2), $3, $4, $5, $6)
72       ]]></status>
73       <metric_numeric><![CDATA[
74         INSERT INTO stratcon.loading_dock_metric_numeric_archive_%Y%m
75                     (whence, sid, name, value)
76              VALUES ( 'epoch'::timestamptz + ($1 || ' seconds')::interval,
77                      stratcon.generate_sid_from_id($2), $3, $4)
78       ]]></metric_numeric>
79       <metric_text><![CDATA[
80         INSERT INTO stratcon.loading_dock_metric_text_archive_%Y%m
81                     ( whence, sid, name,value)
82              VALUES ('epoch'::timestamptz + ($1 || ' seconds')::interval,
83                      stratcon.generate_sid_from_id($2), $3, $4)
84       ]]></metric_text>
85       <config><![CDATA[
86         SELECT stratcon.update_config
87                ($1, $2,
88                 'epoch'::timestamptz + ($3 || ' seconds')::interval,
89                 $4 )
90       ]]></config>
91     </statements>
92   </database>
93
94   <listeners>
95   <consoles type="noit_console">
96     <listener address="/tmp/stratcon">
97       <config><line_protocol>telnet</line_protocol></config>
98     </listener>
99   </consoles>
100   <realtime type="stratcon_realtime_http">
101     <listener address="*" port="80">
102       <config>
103         <hostname>stratcon.noit.example.com</hostname>
104         <document_domain>noit.example.com</document_domain>
105       </config>
106     </listener>
107   </realtime>
108   </listeners>
109
110 </stratcon>
Note: See TracBrowser for help on using the browser.