Skip to main content

send http request to wmonitor

Project description

wmonitor

wmonitor

  • wmonitor会从环境变量中获取"BUILD_TYPE"与"CONFIG_DIR"

demo.py

from wmonitor.metric import Metric

Metric.counter("demo_counter").send()
Metric.counter("demo_counter").tags("business=123").send()
Metric.counter("demo_counter", 2).send()
Metric.gauge("demo_gauge").send()
Metric.state("demo_state").send()

config

BUILD_TYPE 文件名称
BETA wmonitor_beta.cfg
DEV wmonitor_dev.cfg
PROD wmonitor_prod.cfg
DEFAULT or '' wmonitor.cfg

wmonitor.cfg

[web]
domain = http://b1.wmonitor-adaptor.beta.wormpex.com
[app]
app_code = ai_vision_vision_dynamic_cabinet_service

Project details


Download files

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

Files for wmonitor, version 0.0.9
Filename, size File type Python version Upload date Hashes
Filename, size wmonitor-0.0.9-py3.7.egg (7.5 kB) File type Egg Python version 3.7 Upload date Hashes View hashes
Filename, size wmonitor-0.0.9.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View hashes

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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page