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 time | |
| import socket | |
| import pywintypes | |
| import win32pdh | |
| class Win32Performance: | |
| def __init__( self ): | |
| self.counters = [] | |
| self.hq = win32pdh.OpenQuery() |
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
| [root@dlovhn1 /tmp]# iostat -nx 1 | |
| extended device statistics | |
| r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device | |
| 0.0 0.0 0.1 0.0 0.0 0.0 0.1 0.4 0 0 lofi1 | |
| 0.0 0.0 0.2 0.2 0.0 0.0 0.0 0.0 0 0 ramdisk1 | |
| 7.0 102.9 206.0 2865.2 0.4 0.1 4.0 0.5 10 6 c0t0d0 | |
| 7.0 102.9 207.0 2865.2 0.4 0.1 4.0 0.5 10 6 c0t1d0 | |
| 14.0 166.7 413.0 5730.5 39.2 1.0 217.0 5.6 6 14 zones | |
| extended device statistics | |
| r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device |
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
| <URL "http://localhost:8098/stats"> | |
| Instance "riak" | |
| <Key "converge_delay_last"> | |
| Type "gauge"" | |
| </Key> | |
| <Key "converge_delay_max"> | |
| Type "gauge"" | |
| </Key> | |
| <Key "converge_delay_mean"> | |
| Type "gauge"" |
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
| #!/usr/bin/env python | |
| import setuptools # needed for pyinstaller | |
| import os | |
| import sys | |
| import psutil | |
| import time | |
| import re | |
| import argparse |
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
| global | |
| log 127.0.0.1 local2 info | |
| pidfile /var/run/haproxy.pid | |
| stats socket /var/run/haproxy.stat mode 600 level admin | |
| #debug | |
| defaults | |
| mode http | |
| log global |
NewerOlder