Infrastructure Integration

Configuration

  1. Configure the agent by editing /etc/netsil-dd-agent/conf.d/gunicorn.yamlin the collectors.

Example:

    # NB: This check requires the python environment on which gunicorn runs to
    # have the `setproctitle` module installed (https://pypi.python.org/pypi/setproctitle/)

    init_config:

    instances:
      # The name of the gunicorn process. For the following gunicorn server ...
      #
      #    gunicorn --name my_web_app my_web_app_config.ini
      #
      #  ... we'd use the name `my_web_app`.
      #
      # - proc_name: my_web_app
  1. Check and make sure that all yaml files are valid with following command:

    /etc/init.d/netsil-collectors configcheck
    
  2. Restart the Agent using the following command:

    /etc/init.d/netsil-collectors restart
    
  3. Execute the info command to verify that the integration check has passed:

    /etc/init.d/netsil-collectors info
    

The output of the info command should contain a section similar to the following:

    Checks
    ======
      [...]
      gunicorn
      ----------
          - instance #0 [OK]
          - Collected 8 metrics & 0 events

Infrastructure Datasources

Datasource Available Aggregations Unit Description
gunicorn.requests avg max min sum request/second The rate of requests received.
gunicorn.workers avg max min sum worker Number of workers managed by the arbiter.
gunicorn.request.duration.95percentile avg max min sum millisecond The 95th percentile of request duration time.
gunicorn.request.duration.avg avg max min sum millisecond The average request duration time.
gunicorn.request.duration.count avg max min sum request/second The rate of requests received.
gunicorn.request.duration.max avg max min sum millisecond The maximum request duration time.
gunicorn.request.duration.median avg max min sum millisecond The median request duration time.
gunicorn.log.critical avg max min sum occurrence/second The rate of logged critical statements.
gunicorn.log.error avg max min sum occurrence/second The rate of logged errors.
gunicorn.log.warning avg max min sum occurrence/second The rate of logged warnings.
gunicorn.log.exception avg max min sum occurrence/second The rate of logged exceptions.
gunicorn.request.status.100 avg max min sum request/second The rate of requests that generate responses with a 100 status code.
gunicorn.request.status.101 avg max min sum request/second The rate of requests that generate responses with a 101 status code.
gunicorn.request.status.102 avg max min sum request/second The rate of requests that generate responses with a 102 status code.
gunicorn.request.status.200 avg max min sum request/second The rate of requests that generate responses with a 200 status code.
gunicorn.request.status.201 avg max min sum request/second The rate of requests that generate responses with a 201 status code.
gunicorn.request.status.202 avg max min sum request/second The rate of requests that generate responses with a 202 status code.
gunicorn.request.status.203 avg max min sum request/second The rate of requests that generate responses with a 203 status code.
gunicorn.request.status.204 avg max min sum request/second The rate of requests that generate responses with a 204 status code.
gunicorn.request.status.205 avg max min sum request/second The rate of requests that generate responses with a 205 status code.
gunicorn.request.status.206 avg max min sum request/second The rate of requests that generate responses with a 206 status code.
gunicorn.request.status.207 avg max min sum request/second The rate of requests that generate responses with a 207 status code.
gunicorn.request.status.208 avg max min sum request/second The rate of requests that generate responses with a 208 status code.
gunicorn.request.status.226 avg max min sum request/second The rate of requests that generate responses with a 226 status code.
gunicorn.request.status.300 avg max min sum request/second The rate of requests that generate responses with a 300 status code.
gunicorn.request.status.301 avg max min sum request/second The rate of requests that generate responses with a 301 status code.
gunicorn.request.status.302 avg max min sum request/second The rate of requests that generate responses with a 302 status code.
gunicorn.request.status.303 avg max min sum request/second The rate of requests that generate responses with a 303 status code.
gunicorn.request.status.304 avg max min sum request/second The rate of requests that generate responses with a 304 status code.
gunicorn.request.status.305 avg max min sum request/second The rate of requests that generate responses with a 305 status code.
gunicorn.request.status.307 avg max min sum request/second The rate of requests that generate responses with a 307 status code.
gunicorn.request.status.308 avg max min sum request/second The rate of requests that generate responses with a 308 status code.
gunicorn.request.status.400 avg max min sum request/second The rate of requests that generate responses with a 400 status code.
gunicorn.request.status.401 avg max min sum request/second The rate of requests that generate responses with a 401 status code.
gunicorn.request.status.402 avg max min sum request/second The rate of requests that generate responses with a 402 status code.
gunicorn.request.status.403 avg max min sum request/second The rate of requests that generate responses with a 403 status code.
gunicorn.request.status.404 avg max min sum request/second The rate of requests that generate responses with a 404 status code.
gunicorn.request.status.405 avg max min sum request/second The rate of requests that generate responses with a 405 status code.
gunicorn.request.status.406 avg max min sum request/second The rate of requests that generate responses with a 406 status code.
gunicorn.request.status.407 avg max min sum request/second The rate of requests that generate responses with a 407 status code.
gunicorn.request.status.408 avg max min sum request/second The rate of requests that generate responses with a 408 status code.
gunicorn.request.status.409 avg max min sum request/second The rate of requests that generate responses with a 409 status code.
gunicorn.request.status.410 avg max min sum request/second The rate of requests that generate responses with a 410 status code.
gunicorn.request.status.411 avg max min sum request/second The rate of requests that generate responses with a 411 status code.
gunicorn.request.status.412 avg max min sum request/second The rate of requests that generate responses with a 412 status code.
gunicorn.request.status.413 avg max min sum request/second The rate of requests that generate responses with a 413 status code.
gunicorn.request.status.414 avg max min sum request/second The rate of requests that generate responses with a 414 status code.
gunicorn.request.status.415 avg max min sum request/second The rate of requests that generate responses with a 415 status code.
gunicorn.request.status.416 avg max min sum request/second The rate of requests that generate responses with a 416 status code.
gunicorn.request.status.417 avg max min sum request/second The rate of requests that generate responses with a 417 status code.
gunicorn.request.status.419 avg max min sum request/second The rate of requests that generate responses with a 419 status code.
gunicorn.request.status.421 avg max min sum request/second The rate of requests that generate responses with a 421 status code.
gunicorn.request.status.422 avg max min sum request/second The rate of requests that generate responses with a 422 status code.
gunicorn.request.status.423 avg max min sum request/second The rate of requests that generate responses with a 423 status code.
gunicorn.request.status.424 avg max min sum request/second The rate of requests that generate responses with a 424 status code.
gunicorn.request.status.426 avg max min sum request/second The rate of requests that generate responses with a 426 status code.
gunicorn.request.status.428 avg max min sum request/second The rate of requests that generate responses with a 428 status code.
gunicorn.request.status.429 avg max min sum request/second The rate of requests that generate responses with a 429 status code.
gunicorn.request.status.431 avg max min sum request/second The rate of requests that generate responses with a 431 status code.
gunicorn.request.status.451 avg max min sum request/second The rate of requests that generate responses with a 451 status code.
gunicorn.request.status.500 avg max min sum request/second The rate of requests that generate responses with a 500 status code.
gunicorn.request.status.501 avg max min sum request/second The rate of requests that generate responses with a 501 status code.
gunicorn.request.status.502 avg max min sum request/second The rate of requests that generate responses with a 502 status code.
gunicorn.request.status.503 avg max min sum request/second The rate of requests that generate responses with a 503 status code.
gunicorn.request.status.504 avg max min sum request/second The rate of requests that generate responses with a 504 status code.
gunicorn.request.status.505 avg max min sum request/second The rate of requests that generate responses with a 505 status code.
gunicorn.request.status.506 avg max min sum request/second The rate of requests that generate responses with a 506 status code.
gunicorn.request.status.507 avg max min sum request/second The rate of requests that generate responses with a 507 status code.
gunicorn.request.status.508 avg max min sum request/second The rate of requests that generate responses with a 508 status code.
gunicorn.request.status.510 avg max min sum request/second The rate of requests that generate responses with a 510 status code.
gunicorn.request.status.511 avg max min sum request/second The rate of requests that generate responses with a 511 status code.
gunicorn.request.status.512 avg max min sum request/second The rate of requests that generate responses with a 512 status code.