diff options
author | Vladimir Kobal <vlad@prokk.net> | 2019-03-27 11:19:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 11:19:24 +0200 |
commit | b3f690e7c9a759ef3a267766f228c0bcbfc02f4a (patch) | |
tree | cbdfba44300706689fe12e2048087c15438f9fa9 /netdata-installer.sh | |
parent | 4ab5f2e3a526b2a0d9de7c6849bf5d6488d5b288 (diff) |
Add xenstat plugin (#5660)
* Add xenstat plugin
* Add basic domain charts
* Initialize xl context
* Use domain UUID instead of name
* Make charts obsolete
* Add tmem charts
* Change algorithm for tmem puts and gets
* Add VCPU charts
* Minor formatting for sending charts functions
* Add VBD charts
* Add network charts
* Assemble VCPU metrics in one chart
* Fix chart names
* Make write/sent dimensions negative
* Minor formatting
* Change id and context for domain charts
* Add dashboard info
* Get rid of global variables
* Free libxenstat and libxl resourses
* Free domain_metrics on VM shutdown
* Add domain state chart
* Add debug messages
* Add branch prediction hints
* Minor fix
* Fix chart obsoleting
* Make names more general
* Fix CMake build of nfacct.plugin
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 5e375d9785..22aa39fa7f 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -148,6 +148,12 @@ Valid <installer options> are: Enable/disable the nfacct plugin. Default: enable it when libmnl and libnetfilter_acct are available. + --enable-plugin-xenstat + --disable-plugin-xenstat + + Enable/disable the xenstat plugin. + Default: enable it when libxenstat and libyajl are available. + --enable-lto --disable-lto @@ -225,6 +231,12 @@ while [ ! -z "${1}" ]; do elif [ "$1" = "--disable-plugin-nfacct" ]; then NETDATA_CONFIGURE_OPTIONS="${NETDATA_CONFIGURE_OPTIONS//--disable-plugin-nfacct/} --disable-plugin-nfacct" shift 1 + elif [ "$1" = "--enable-plugin-xenstat" ]; then + NETDATA_CONFIGURE_OPTIONS="${NETDATA_CONFIGURE_OPTIONS//--enable-plugin-xenstat/} --enable-plugin-xenstat" + shift 1 + elif [ "$1" = "--disable-plugin-xenstat" ]; then + NETDATA_CONFIGURE_OPTIONS="${NETDATA_CONFIGURE_OPTIONS//--disable-plugin-xenstat/} --disable-plugin-xenstat" + shift 1 elif [ "$1" = "--enable-lto" ]; then NETDATA_CONFIGURE_OPTIONS="${NETDATA_CONFIGURE_OPTIONS//--enable-lto/} --enable-lto" shift 1 @@ -771,6 +783,11 @@ if [ ${UID} -eq 0 ]; then run chmod 4750 "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/nfacct.plugin" fi + if [ -f "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/xenstat.plugin" ]; then + run chown root:${NETDATA_GROUP} "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/xenstat.plugin" + run chmod 4750 "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/xenstat.plugin" + fi + if [ -f "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/cgroup-network" ]; then run chown root:${NETDATA_GROUP} "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/cgroup-network" run chmod 4750 "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/cgroup-network" |