Edit your config file:
$ vim /usr/local/var/postgres/postgresql.conf
Uncomment the line starting with:
timezone = ...
And change it to:
Edit your config file:
$ vim /usr/local/var/postgres/postgresql.conf
Uncomment the line starting with:
timezone = ...
And change it to:
In dogweb.ini: | |
[filter:linesman] | |
use = egg:linesman#profiler | |
... | |
[app:main] | |
filter-with = linesman |
:: Gauge | |
echo myapp.my_gauge:123^^^|g | nc -w 1 -u 127.0.0.1 8125 | |
:: Counter | |
echo myapp.my_counter:1^^^|c | nc -w 1 -u 127.0.0.1 8125 | |
:: Histogram | |
echo myapp.my_histogram:1^^^|h | nc -w 1 -u 127.0.0.1 8125 |
import wmi | |
w = wmi.WMI('172.23.33.110', user=None, password=None) | |
wmi_cls = w.Win32_PerfFormattedData_W3SVC_WebService(name="_Total")[0] | |
print wmi_cls.BytesSentPerSec |
>>> import wmi | |
>>> w = wmi.WMI() | |
>>> cpu = w.Win32_PerfFormattedData_PerfOS_Processor(name="_Total")[0] | |
>>> print cpu.PercentUserTime | |
>>> print cpu.PercentIdleTime |
submit_gauge(_, {_Epoch, none}, _) -> ok. | |
submit_gauge(MetricName, Point, Props) -> datadog:gauge(MetricName, Point, Props). |
import unittest | |
import logging | |
logging.basicConfig(level=logging.DEBUG) | |
log = logging.getLogger(__file__) | |
import checks.system.win32 as w32 | |
WIN32_CHECKS = [ | |
w32.Disk(log), |
# boot_service.py | |
import sys | |
import os | |
import servicemanager | |
import win32service | |
import win32serviceutil | |
import winerror | |
# Add multiprocessing support to py2exe services | |
import multiprocessing |