system.cpu.idle
: % Idle CPUsystem.cpu.system
: % System CPUsystem.cpu.user
: % User CPU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
import logging | |
logging.basicConfig(level=logging.DEBUG) | |
log = logging.getLogger(__file__) | |
import checks.system.win32 as w32 | |
WIN32_CHECKS = [ | |
w32.Disk(log), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
submit_gauge(_, {_Epoch, none}, _) -> ok. | |
submit_gauge(MetricName, Point, Props) -> datadog:gauge(MetricName, Point, Props). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import wmi | |
>>> w = wmi.WMI() | |
>>> cpu = w.Win32_PerfFormattedData_PerfOS_Processor(name="_Total")[0] | |
>>> print cpu.PercentUserTime | |
>>> print cpu.PercentIdleTime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In dogweb.ini: | |
[filter:linesman] | |
use = egg:linesman#profiler | |
... | |
[app:main] | |
filter-with = linesman |
Edit your config file:
$ vim /usr/local/var/postgres/postgresql.conf
Uncomment the line starting with:
timezone = ...
And change it to:
NewerOlder