Skip to content

Commit

Permalink
translation to en and fixes in russian doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ekho committed Jun 6, 2016
1 parent 1b22e24 commit a32cb65
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ location /metrix/ {
metrix.show()
}
}
```
    2\. Separate virtual host (`server`):

Expand All @@ -109,21 +110,21 @@ server {
}
```

### See or collect stats

Stats can be
*NOTE 1: You should to take care of security. For example to use the allow/deny rules or authorization.*

Statistics can be viewed in the browser or obtain using various tools.
*NOTE 2: You can use both methods together.*

### See or collect stats

Stats can be found at http://mydomain/metrix/ in case of special location. Or at http://metrix:81/ in case of separate server configuration.

Supported formats: `text`(default), `html` and `json`.
Statistics can be viewed in the browser or obtain using various tools.

Format determines by `Accept` http header or by `format` parameter.
Supported output formats: `text`(default), `html` and `json`. Format determines by `Accept` http header or by `format` parameter.

If you are using existing `server` with special location you will see stats about this vhost.
If you are using separate `server` stats for all existing (collected) vhosts will be showed.
If you want to see stats about only one you should pass parameter `vhost=yourdomain.com`
By default statistics shows for current virtual host. But you can specify `vhosts_filter` parameter (list of strings or lua string pattern).
List of affected virtual hosts can be obtained by `list_vhosts` query string parameter.
If `vhosts_filter` specified and you want to see stats about only one of vhosts you should pass parameter `vhost=yourdomain.com` in query string.

Extending
---------
Expand Down
4 changes: 4 additions & 0 deletions doc/README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ server {
}
```

*Замечание 1: Вы самостоятельно должны позаботиться о безопасности. Например с помщью правил allow/deny или авторизации.*

*Замечание 2: Можно комбинировать оба этих метода.*

### Просмотр статистики

Минимально достаточно открыть в браузере адрес сконфигурированный для вывода статистики.
Expand Down

0 comments on commit a32cb65

Please sign in to comment.