Opened 8 years ago

#1242 new enhancement

nginx stub_status exhancement

Reported by: sergey.smitienko@… Owned by:
Priority: minor Milestone:
Component: nginx-module Version: 1.11.x
Keywords: extended status stub_status Cc:
uname -a: Linux BigGun 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.11.13
built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
built with OpenSSL 1.0.2g 1 Mar 2016
TLS SNI support enabled
configure arguments: --prefix=/home/hunter/tmp/nginx/root --with-http_stub_status_module --with-http_stub_status_extended --with-http_ssl_module --with-http_v2_module

Description

Патч добавляет новый функционал - подсчет количества различных http кодов и вывод в stub_status. Это очень удобно, чтобы снимать метрики без необходимости парсинга access log. status_code_def это счетчик кодов статуса не подпавших под список подсчитываемых кодов. Добавляется новая опция конфигурации --with-http_stub_status_extended

Active connections: 2
server accepts handled requests

18 18 20

Reading: 0 Writing: 1 Waiting: 1
status_code_def: 0
status_code_100: 0
status_code_101: 0
status_code_102: 0
status_code_200: 11
status_code_201: 0
status_code_202: 0
status_code_203: 0
status_code_204: 0
status_code_205: 0
status_code_206: 0
status_code_207: 0
status_code_300: 0
status_code_301: 0
status_code_302: 0
status_code_303: 0
status_code_304: 0
status_code_305: 0
status_code_307: 0
status_code_400: 0
status_code_401: 0
status_code_402: 0
status_code_403: 7
status_code_404: 1
status_code_405: 0
status_code_406: 0
status_code_407: 0
status_code_408: 0
status_code_409: 0
status_code_410: 0
status_code_411: 0
status_code_412: 0
status_code_413: 0
status_code_414: 0
status_code_415: 0
status_code_416: 0
status_code_417: 0
status_code_422: 0
status_code_423: 0
status_code_424: 0
status_code_425: 0
status_code_426: 0
status_code_428: 0
status_code_429: 0
status_code_431: 0
status_code_434: 0
status_code_444: 0
status_code_449: 0
status_code_451: 0
status_code_500: 0
status_code_501: 0
status_code_502: 0
status_code_503: 0
status_code_504: 0
status_code_505: 0
status_code_506: 0
status_code_507: 0
status_code_508: 0
status_code_509: 0
status_code_510: 0
status_code_511: 0

Attachments (1)

diff.txt (7.2 KB ) - added by sergey.smitienko@… 8 years ago.
git diff

Download all attachments as: .zip

Change History (1)

by sergey.smitienko@…, 8 years ago

Attachment: diff.txt added

git diff

Note: See TracTickets for help on using tickets.