summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 304b23a)
raw | patch | inline | side by side (parent: 304b23a)
author | Vincent Brillault <git@lerya.net> | |
Thu, 19 Jun 2014 22:06:42 +0000 (00:06 +0200) | ||
committer | Vincent Brillault <git@lerya.net> | |
Sat, 28 Feb 2015 06:35:40 +0000 (07:35 +0100) |
AUTHORS | patch | blob | history | |
README | patch | blob | history | |
configure.ac | patch | blob | history | |
src/Makefile.am | patch | blob | history | |
src/collectd.conf.in | patch | blob | history |
index b35f35f2d8afdfc5e1ea4d125feaa51f71413104..00812226193d8f9da3ab01b2aef9c0bd380336e5 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
Vincent Bernat <vincent at bernat.im>
- smart plugin.
+Vincent Brillault <git at lerya.net>
+ - turbostat plugin, based on Len Brown <len.brown at intel.com> kernel tool
+
Vincent Stehlé <vincent.stehle at free.fr>
- hddtemp plugin.
index c2c08733c2892bd6a373c1e7d3ac44df649cac1f..133c034ceeee752d6ced80a1760387651799539d 100644 (file)
--- a/README
+++ b/README
Reads the number of records and file size from a running Tokyo Tyrant
server.
+ - turbostat
+ Reads CPU frequency and C-state residency on modern Intel
+ turbo-capable processors.
+
- uptime
System uptime statistics.
diff --git a/configure.ac b/configure.ac
index f2d7ebdb11e3b2259f3febb7c62425136a594a9a..0f9f33be6081db2f671290436e854679221502c0 100644 (file)
--- a/configure.ac
+++ b/configure.ac
plugin_tcpconns="no"
plugin_ted="no"
plugin_thermal="no"
+plugin_turbostat="no"
plugin_uptime="no"
plugin_users="no"
plugin_virt="no"
plugin_swap="yes"
plugin_tcpconns="yes"
plugin_thermal="yes"
+ plugin_turbostat="yes"
plugin_uptime="yes"
plugin_vmem="yes"
plugin_vserver="yes"
AC_PLUGIN([thermal], [$plugin_thermal], [Linux ACPI thermal zone statistics])
AC_PLUGIN([threshold], [yes], [Threshold checking plugin])
AC_PLUGIN([tokyotyrant], [$with_libtokyotyrant], [TokyoTyrant database statistics])
+AC_PLUGIN([turbostat], [$plugin_turbostat], [Advanced statistic on Intel cpu states])
AC_PLUGIN([unixsock], [yes], [Unixsock communication plugin])
AC_PLUGIN([uptime], [$plugin_uptime], [Uptime statistics])
AC_PLUGIN([users], [$plugin_users], [User statistics])
thermal . . . . . . . $enable_thermal
threshold . . . . . . $enable_threshold
tokyotyrant . . . . . $enable_tokyotyrant
+ turbostat . . . . . . $enable_turbostat
unixsock . . . . . . $enable_unixsock
uptime . . . . . . . $enable_uptime
users . . . . . . . . $enable_users
diff --git a/src/Makefile.am b/src/Makefile.am
index 004fc94ba31af5900d86cc6f839866f5f2ba3284..6a5c53ab50a0eb1767dfe012c89245e4b730912d 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
endif
endif
+if BUILD_PLUGIN_TURBOSTAT
+pkglib_LTLIBRARIES += turbostat.la
+turbostat_la_SOURCES = turbostat.c
+turbostat_la_LDFLAGS = -module -avoid-version
+collectd_LDADD += "-dlopen" turbostat.la
+collectd_DEPENDENCIES += turbostat.la
+endif
+
if BUILD_PLUGIN_UNIXSOCK
pkglib_LTLIBRARIES += unixsock.la
unixsock_la_SOURCES = unixsock.c \
diff --git a/src/collectd.conf.in b/src/collectd.conf.in
index 34cd24f8c35344cd60c9e3c8b19c85d7bf3bed21..ec17e45d39938f3c2b43614e9e70a34eded70991 100644 (file)
--- a/src/collectd.conf.in
+++ b/src/collectd.conf.in
#@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
#@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
#@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
+#@BUILD_PLUGIN_TURBOSTAT_TRUE@LoadPlugin turbostat
#@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
#@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
#@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users