Code Monkey home page Code Monkey logo

uwsgimon's Introduction

uwsgimon

uwsgimon uses uWSGI Stats Server to produce arbitrary output that can be used to monitor your uwsgi application, e.g. InfluxDB Graphite.

To use uWSGI Stat Server simply use the stats option followed by a valid socket address, for example:

uwsgi --module myapp --socket :3030 --stats /tmp/stats.socket

Note: If you want the stats served over HTTP you will need to also add the stats-http option.

To start monitoring your application with uwsgimon call it with the socket address:

uwsgimon --node xcfapp-app-01 --frequency 10 /tmp/stats.socket

Installation

pip install git+https://github.com/ushuz/uwsgimon.git

Usage

$ uwsgimon --help
usage: uwsgimon [-h] [--node NODE] [--frequency FREQ] [--format FORMAT] stats

positional arguments:
  stats                 uWSGI stats address

optional arguments:
  -h, --help            show this help message and exit
  --node NODE, -n NODE  uWSGI node name, current hostname by default
  --frequency FREQ, -q FREQ
                        uWSGI stats refresh frequency, in seconds
  --format FORMAT, -f FORMAT
                        output format, available variables:
                            ver  - uWSGI version
                            node - uWSGI node name
                            req  - total requests
                            rps  - requests per second
                            avg  - average response time
                            busy - busy workers count
                            idle - idle workers count

                        e.g. "uwsgi,node={node} req={req}i,rps={rps}i,avg={avg},lq={lq}i,tx={tx}i"

Further Reading

For more info on uWSGI Stats Server see http://projects.unbit.it/uwsgi/wiki/StatsServer

uwsgimon's People

Contributors

a-kr avatar akash0x53 avatar iiseymour avatar jajcus avatar jcua avatar morsik avatar rn-jlazic avatar scop avatar unbit avatar ushuz avatar xrmx avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.