Changeset 1010758f1bf51c8a086d4287a27448cdad2d4b7f
- Timestamp:
- 09/07/08 01:28:20
(5 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1220750900 +0000
- git-parent:
[db656f3332551668dbf8656d8dcd05fe917ddcd7]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1220750900 +0000
- Message:
ignore and some varnish docs, refs #21
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rbbebbfe |
r1010758 |
|
| 5 | 5 | |
|---|
| 6 | 6 | function onload(image) |
|---|
| 7 | | print("I'm in varnish onload") |
|---|
| | 7 | image.xml_description([=[ |
|---|
| | 8 | <module> |
|---|
| | 9 | <name>varnish</name> |
|---|
| | 10 | <description><para>Monitor maagement metrics of a Varnish instance.</para></description> |
|---|
| | 11 | <loader>lua</loader> |
|---|
| | 12 | <object>noit.module.varnish</object> |
|---|
| | 13 | <moduleconfig /> |
|---|
| | 14 | <checkconfig> |
|---|
| | 15 | <parameter name="port" required="optional" default="8081" |
|---|
| | 16 | allowed="\\d+">Specifies the port on which the management interface can be reached.</parameter> |
|---|
| | 17 | </checkconfig> |
|---|
| | 18 | <examples> |
|---|
| | 19 | <example> |
|---|
| | 20 | <title>Monitor two varnish instances with management on port 8081</title> |
|---|
| | 21 | <para>The following example pulls are metrics available from Varnish running on 10.1.2.3 and 10.1.2.4</para> |
|---|
| | 22 | <programlisting><![CDATA[ |
|---|
| | 23 | <noit> |
|---|
| | 24 | <modules> |
|---|
| | 25 | <loader image="lua" name="lua"> |
|---|
| | 26 | <config><directory>/opt/reconnoiter/libexec/modules-lua/?.lua</directory></config> |
|---|
| | 27 | </loader> |
|---|
| | 28 | <module loader="lua" name="varnish" object="noit.module.varnish"/> |
|---|
| | 29 | </modules> |
|---|
| | 30 | <checks> |
|---|
| | 31 | <check uuid="2d42adbc-7c7a-11dd-a48f-4f59e0b654d3" module="varnish" target="10.1.2.3" /> |
|---|
| | 32 | <check uuid="324c2234-7c7a-11dd-8585-cbb783f8267f" module="varnish" target="10.1.2.4" /> |
|---|
| | 33 | </checks> |
|---|
| | 34 | </noit> |
|---|
| | 35 | ]]></programlisting> |
|---|
| | 36 | </example> |
|---|
| | 37 | </examples> |
|---|
| | 38 | </module> |
|---|
| | 39 | ]=]); |
|---|
| 8 | 40 | return 0 |
|---|
| 9 | 41 | end |
|---|
| 10 | 42 | |
|---|
| 11 | 43 | function init(module) |
|---|
| 12 | | print("I'm in varnish init") |
|---|
| 13 | 44 | return 0 |
|---|
| 14 | 45 | end |
|---|
| 15 | 46 | |
|---|
| 16 | 47 | function config(module, options) |
|---|
| 17 | | print("I'm in varnish config") |
|---|
| 18 | 48 | return 0 |
|---|
| 19 | 49 | end |
|---|