root/src/modules/httptrap.xml

Revision b98abc532cfb9d3411c5dcc28804a98da4d5725b, 1.8 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 3 years ago)

fixes #362

  • Property mode set to 100644
Line 
1 <module>
2   <name>httptrap</name>
3   <description><para>The httptrap module provides a simple way to push data into reconnoiter from other applications.  Simply structure a json document and use the PUT method against reconnoiter's psuedo-webserver on port 43191.</para></description>
4   <loader>C</loader>
5   <image>httptrap.so</image>
6   <moduleconfig>
7     <parameter name="asynch_metrics"
8                required="optional"
9                default="true"
10                allowed="(?:true|on|false|off)">Specify whether httptrap metrics are logged immediately or help until the status message is to be emitted.</parameter>
11   </moduleconfig>
12   <checkconfig>
13     <parameter name="asynch_metrics"
14                required="optional"
15                default="true"
16                allowed="(?:true|on|false|off)">Specify whether httptrap metrics are logged immediately or help until the status message is to be emitted.</parameter>
17   </checkconfig>
18   <examples>
19     <example>
20       <title>Posting a string and a number.</title>
21       <para><code>curl -X PUT https://noit:43191/module/httptrap/1b4e28ba-2fa1-11d2-893f-e9b761bde3fb/s3cr3tk3y</code></para>
22       <para>PUT payload:</para>
23       <programlisting><![CDATA[
24       { "version": "1.alpha",
25         "requests": 123853,
26         "bignumber": { "_type": "L", "_value": "18426744073707551616" }
27       }
28       ]]></programlisting>
29
30       <programlisting><![CDATA[
31       <noit>
32         <modules>
33           <module image="httptrap" name="httptrap"/>
34         </modules>
35         <checks>
36           <check uuid="1b4e28ba-2fa1-11d2-893f-e9b761bde3fb" module="httptrap"
37             target="127.0.0.1" period="60000" timeout="30000">
38             <config><secret>s3cr3tk3y</secret></config>
39           </check>
40         </checks>
41       </noit>
42       ]]></programlisting>
43     </example>
44   </examples>
45 </module>
Note: See TracBrowser for help on using the browser.