Skip to main content

supervisor process gauge eventlistener

Project description

Version

v0.0.2

Supported Backend

  • Ali CMS
  • Baidu BCM

How to Use

create a config file

docker:
    version: auto

supervisor:
    SUPERVISOR_SERVER_URL: http://localhost:9000/RPC2
    # SUPERVISOR_USERNAME: chulai-usr
    # SUPERVISOR_PASSWORD: chulai-pwd

plugins:
    # echo: {}
    # ali_cms:
    #   user_id: ALI-USER-ID
    # baidu_bcm:
    #   access_key: BCE_ACCESS-KEY
    #   secret_key: BCE-SECRET-KEY
    #   user_id: BCE-USER-ID
    #   scope: BCM-SCOPE

logging:
  version: 1
  loggers:
      supergauge.eventlistener:
          handlers: [file]
          level: DEBUG
      __main__:
          handlers: [file]
          level: INFO
  handlers:
    file:
      class : logging.handlers.RotatingFileHandler
      level: DEBUG
      formatter: precise
      filename: log/gauge.log
      maxBytes: 1024
      backupCount: 3
  formatters:
    precise:
      class: logging.Formatter
      format: "%(asctime)s %(name)-15s %(levelname)-8s %(processName)-10s %(message)s"

put following snippet in your supervisor config file

[eventlistener:supergauge]
command=supergauge /path/to/config/file
events=TICK_60 ; collect every 60s [TICK_5, TICK_60, TICK_3600]
user=username ; if you have your permission screwed up, use root

How to Install

pip install supergauge –process-dependency-links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
supergauge-0.0.2.tar.gz (10.7 kB) Copy SHA256 hash SHA256 Source None Jul 21, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page