Giter Club home page Giter Club logo

munin-nginx_request_time's Introduction

munin-nginx_request_time

Munin plugin for nginx request time

munin-nginx_request_time example

Modes

Default

  • min, median, 90th percentile, 95th percentile

max

  • max

Usage

munin-nginx_request_time plugin needs Statistics modules.

sudo cpanm File::ReadBackwards
sudo cpanm Statistics::Lite
sudo cpanm Statistics::Descriptive

And then,

ln -s nginx_request_time /etc/munin/plugins/nginx_request_time
ln -s nginx_request_time /etc/munin/plugins/nginx_request_time_max

Configration

logfile

  • ie. /var/log/nginx/access.log

loglimit

  • ie. 1000

Example

[nginx_request_time]
    env.logfile /var/log/nginx/access.log
    env.loglimit 1000

munin-nginx_request_time's People

Contributors

cubicdaiya avatar nanaya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

taro-k

munin-nginx_request_time's Issues

Change log format to let Logwatch work with no modification

If we change Nginx log format by following the instruction, httpd section of Logwatch doesn't work.
To solve this problem, we can change setting of Logwatch, however, I think it's much better that no such change/modification is required.

Do you have a specific reason for the suggested format?

If no, I'd recommend that the log format is combined+request_time:

'$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" '
'$request_time';

, which is OK with Logwatch at least my server.
If you can accept this, I can make PR of the corresponding code.

Error on Debian Jessie

Hi, I am trying to use this plugin on Debian Jessie.
Here, CPAN perl libs are to be installed by apt-get command:
# apt-get install libstatistics-basic-perl libstatistics-descriptive-perl libfile-readbackwards-perl libstatistics-lite-perl/sid
Then, the following test-run returns the error
# munin-run nginx_request_time

Name "main::bw" used only once: possible typo at /etc/munin/plugins/nginx_request_time_max line 101.
Can't call method "readline" on an undefined value at /etc/munin/plugins/nginx_request_time_max line 101.

The versions of each libs are
libstatistics-basic-perl: Version: 1.6607-1
libstatistics-descriptive-perl: Version: 3.0607-1
libfile-readbackwards-perl: Version: 1.05-1
libstatistics-lite-perl: Version: 3.62-1

Any advice would be appreciated, thx!
(The reply in Japanese language is also OK for me.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.