Created
April 8, 2016 07:50
-
-
Save cluePrints/51b9cef015099f47de0941e77fa8469c to your computer and use it in GitHub Desktop.
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
1. спочатку я згадую чим вони збираються | |
sensu-opower-plugins $ grep cpu -R config/ -A5 | grep command | |
config//checks/check_system_metrics.json: "command": "if [ -f /etc/sensu/sensu-opower-plugins/checks/system/cpu-usage-metrics.sh ] ; then /etc/sensu/sensu-opower-plugins/checks/system/cpu-usage-metrics.sh ; else true ; fi", | |
config//checks/check_system_metrics.json- "command": "if [ -f /etc/sensu/sensu-opower-plugins/checks/system/load-metrics.rb ] ; then /etc/sensu/sensu-opower-plugins/checks/system/load-metrics.rb ; else true ; fi", | |
2. потім дивлюся чи це то що мені підходить | |
[ivan.sobolev@dev-service-1069 ~]$ /etc/sensu/sensu-opower-plugins/checks/system/cpu-usage-metrics.sh | |
cpu.usage 2 1460101731 | |
[ivan.sobolev@dev-service-1069 ~]$ /etc/sensu/sensu-opower-plugins/checks/system/load-metrics.rb | |
load_avg.one 0.10 1460101743 | |
load_avg.five 0.06 1460101743 | |
load_avg.fifteen 0.07 1460101743 | |
3. потім лізу в opentsdb. note tags | |
https://opentsdb.va.opower.it/#start=24h-ago&end=1s-ago&m=sum:load_avg.fifteen%7Bhost=dev-service-1069.va.opower.it%7D&o=&yrange=%5B0:%5D&wxh=1420x580 | |
4. ... | |
5. Profit! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment