supervisor process gauge eventlistener
Project description
Version
v0.0.1
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
supergauge-0.0.1.tar.gz
(10.7 kB
view details)
File details
Details for the file supergauge-0.0.1.tar.gz
.
File metadata
- Download URL: supergauge-0.0.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b96e4de56cab830e0c1ea3800729a0c22116123e11d58350a9ce1b70cc0d5b03 |
|
MD5 | 36b70bc5cf1ef6728f779319769c9798 |
|
BLAKE2b-256 | d794cf4b648adda8d4f90f876cf0d17a967599d4cca3daf1b5e4878187bf81ae |