-
Notifications
You must be signed in to change notification settings - Fork 384
collectors HttpCollector
Rob Smith edited this page Sep 16, 2014
·
1 revision
Collect statistics from a HTTP or HTTPS connexion
- urllib2
Add the collector config as :
enabled = True ttl_multiplier = 2 path_suffix = "" measure_collector_time = False byte_unit = byte, req_vhost = www.my_server.com req_url = https://www.my_server.com/, https://www.my_server.com/assets/jquery.js
Metrics are collected as : - servers..http..size (size of the page received in bytes) - servers..http..time (time to download the page in microsec)
'.' and '/' chars are replaced by __, url looking like
http://www.site.com/admin/page.html are replaced by
http:__www_site_com_admin_page_html
Options - Generic Options
Setting | Default | Description | Type |
---|---|---|---|
byte_unit | byte | Default numeric output(s) | str |
enabled | False | Enable collecting these metrics | bool |
measure_collector_time | False | Collect the collector run time in ms | bool |
metrics_blacklist | None | Regex to match metrics to block. Mutually exclusive with metrics_whitelist | NoneType |
metrics_whitelist | None | Regex to match metrics to transmit. Mutually exclusive with metrics_blacklist | NoneType |
req_port | Port | ||
req_url | http://localhost/, | array of full URL to get (ex : https://www.ici.net/mypage.html) | list |
req_vhost | Host header variable if needed. Will be added to every request | str |
servers.hostname.http.http__www_my_server_com_.size 150