Changeset e520e98b8f3e66fdfa978ec0f096baad8a7dfb38
- Timestamp:
- 11/01/11 00:44:52 (2 years ago)
- git-parent:
[3c0b5cfefa3533bd9495cecbb70b5fd9d5250390], [895f8f377833cef214643a6ff35c402fd6835a25]
- Files:
-
- src/modules-lua/noit/module/http.lua (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
src/modules-lua/noit/module/http.lua
r608552c re520e98 92 92 default="10000" 93 93 allowed="\d+">This sets the PCRE internal match limit (see pcreapi documentation).</parameter> 94 <parameter name="include_body" 95 required="optional" 96 allowed="^(?:true|false|on|off)$" 97 default="false" 98 allowed="\d+">Include whole response body as a metric with the key 'body'.</parameter> 99 94 100 </checkconfig> 95 101 <examples> … … 270 276 local pcre_match_limit = check.config.pcre_match_limit or 10000 271 277 local redirects = check.config.redirects or 0 278 local include_body = false 272 279 273 280 -- expect the worst … … 294 301 if schema == 'https' then 295 302 use_ssl = true 303 end 304 305 -- Include body as a metric 306 if check.config.include_body == "true" or check.config.include_body == "on" then 307 include_body = true 296 308 end 297 309 … … 487 499 end 488 500 501 -- Include body 502 if include_body then 503 check.metric_string('body', output or '') 504 end 505 489 506 -- ssl ctx 490 507 local ssl_ctx = client:ssl_ctx()
