Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blog:vcenter_vm_monitoring_with_graphite [2014/10/01 02:45] – brett | blog:vcenter_vm_monitoring_with_graphite [2014/10/01 04:12] (current) – brett | ||
---|---|---|---|
Line 3: | Line 3: | ||
This was done on a CentOS 6.3 server your mileage may vary on another platform. | This was done on a CentOS 6.3 server your mileage may vary on another platform. | ||
- | {{:blog: | + | The problem I was trying to solve was that I wanted to monitor the vitals of all my VM's without having to install collectd into each VM, by talking to vCenter we can pull everything out that we need. This work was inspired by [[https:// |
- | You will need to have a version of collectd compiled that has the python plugin enabled. | + | See details on setting up [[livebox/ |
+ | |||
+ | {{: | ||
We don't use the collectd RPM from the EPEL repository as its too old and does not have the graphite_write plugin. | We don't use the collectd RPM from the EPEL repository as its too old and does not have the graphite_write plugin. | ||
+ | |||
+ | You will need to have a version of collectd compiled that has the python plugin enabled. | ||
Mathew has a good write on the graphite / collectd compilation and configuration for graphite. | Mathew has a good write on the graphite / collectd compilation and configuration for graphite. | ||
Line 13: | Line 17: | ||
Be sure to have this installed before run " | Be sure to have this installed before run " | ||
< | < | ||
+ | yum install python | ||
yum install python-devel | yum install python-devel | ||
</ | </ | ||
Line 36: | Line 41: | ||
</ | </ | ||
- | This works fine in my lab where I have a single vCenter instance. | + | You'll need to have [[http:// |
+ | < | ||
+ | yum install python-setuptools | ||
+ | easy_install -U pysphere | ||
+ | </ | ||
+ | The magic script that pulls all the stats we need. | ||
vcenter.py | vcenter.py | ||
Line 49: | Line 59: | ||
# Metric and reporting type as a value | # Metric and reporting type as a value | ||
+ | # https:// | ||
+ | # / | ||
+ | # https:// | ||
METRIC={" | METRIC={" | ||
" | " | ||
- | " | + | " |
" | " | ||
" | " | ||
" | " | ||
- | " | ||
" | " | ||
Line 160: | Line 172: | ||
</ | </ | ||
- | {{tag> | + | {{tag> |
~~LINKBACK~~ | ~~LINKBACK~~ | ||