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.

Source Distribution

wmonitor-0.0.9.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

wmonitor-0.0.9-py3.7.egg (7.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page