summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: adaff4f)
raw | patch | inline | side by side (parent: adaff4f)
author | Florian Forster <octo@collectd.org> | |
Sat, 11 May 2013 08:59:02 +0000 (10:59 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 11 May 2013 09:01:12 +0000 (11:01 +0200) |
src/collectd.conf.in | patch | blob | history | |
src/collectd.conf.pod | patch | blob | history | |
src/mic.c | patch | blob | history |
diff --git a/src/collectd.conf.in b/src/collectd.conf.in
index 270da31067033d16962a6f64b3d355f561520455..e103863a5b79148f8cbef84b6426a39d2e17bd93 100644 (file)
--- a/src/collectd.conf.in
+++ b/src/collectd.conf.in
#</Plugin>
#<Plugin mic>
-# ShowTotalCPU true
-# ShowPerCPU true
+# ShowCPU true
+# ShowCPUCores true
# ShowMemory true
-# ShowTemps true
-#Temperature Sensors can be ignored/shown by repeaded
-#TempSensor Lines, and then inverted with a IgnoreTempSelected
-#Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
-# TempSensor vddg
-# IgnoreTempSelected true
+# ShowTemperatures true
+## Temperature Sensors can be ignored/shown by repeaded #TempSensor lines, and
+## then inverted with a IgnoreTempSelected.
+## Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
+# Temperature vddg
+# IgnoreSelectedTemperature true
#</Plugin>
-
#<Plugin varnish>
# This tag support an argument if you want to
# monitor the local instance just use </Instance>
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 8606d3e05533ff123f606e30ea7ef1f514c8857b..242c8f845aff73da03c4c677361e59bba632e634 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
=head2 Plugin C<memcached>
-The C<memcached plugin> connects to a memcached server and queries statistics
+The B<memcached plugin> connects to a memcached server and queries statistics
about cache utilization, memory and bandwidth used.
L<http://www.danga.com/memcached/>
=back
+=head2 Plugin C<mic>
+
+The B<mic plugin> gathers CPU statistics, memory usage and temperatures from
+Intel's Many Integrated Core (MIC) systems.
+
+B<Synopsis:>
+
+ <Plugin mic>
+ ShowCPU true
+ ShowCPUCores true
+ ShowMemory true
+
+ ShowTemperatures true
+ Temperature vddg
+ Temperature vddq
+ IgnoreSelectedTemperature true
+ </Plugin>
+
+The following options are valid inside the B<PluginE<nbsp>mic> block:
+
+=over 4
+
+=item B<ShowCPU> B<true>|B<false>
+
+If enabled (the default) a sum of the CPU usage accross all cores is reported.
+
+=item B<ShowCPUCores> B<true>|B<false>
+
+If enabled (the default) per-core CPU usage is reported.
+
+=item B<ShowMemory> B<true>|B<false>
+
+If enabled (the default) the physical memory usage of the MIC system is
+reported.
+
+=item B<ShowTemperatures> B<true>|B<false>
+
+If enabled (the default) various temperatures of the MIC system are reported.
+
+=item B<Temperature> I<Name>
+
+This option controls which temperatures are being reported. Whether matching
+temperatures are being ignored or I<only> matching temperatures are reported
+depends on the B<IgnoreSelectedTemperature> setting below. By default I<all>
+temperatures are reported.
+
+=item B<IgnoreSelectedTemperature> B<false>|B<true>
+
+Controls the behavior of the B<Temperature> setting above. If set to B<false>
+(the default) only temperatures matching a B<Temperature> option are reported
+or, if no B<Temperature> option is specified, all temperatures are reported. If
+set to B<true>, matching temperatures are I<ignored> and all other temperatures
+are reported.
+
+Known temperature names are:
+
+=over 4
+
+=item die
+
+=item devmem
+
+=item fin
+
+=item fout
+
+=item vccp
+
+=item vddg
+
+=item vddq
+
+=back
+
+=back
+
=head2 Plugin C<modbus>
The B<modbus plugin> connects to a Modbus "slave" via Modbus/TCP and reads
values), large integer values (unsigned 32E<nbsp>bit values) and floating point
values (two registers interpreted as IEEE floats in big endian notation).
-Synopsis:
+B<Synopsis:>
<Data "voltage-input-1">
RegisterBase 0
diff --git a/src/mic.c b/src/mic.c
index a2d4dc3317b6872e9b7398abfd9b64984a086e4d..b2eeeabb8a2b9ce53bb898070c3a41eb73f4b22b 100644 (file)
--- a/src/mic.c
+++ b/src/mic.c
static const char *config_keys[] =
{
- "ShowTotalCPU",
- "ShowPerCPU",
- "ShowTemps",
+ "ShowCPU",
+ "ShowCPUCores",
"ShowMemory",
- "TempSensor",
- "IgnoreTempSelected",
+ "ShowTemperatures",
+ "Temperature",
+ "IgnoreSelectedTemperature",
};
static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
-static _Bool show_total_cpu = 1;
-static _Bool show_per_cpu = 1;
-static _Bool show_temps = 1;
+static _Bool show_cpu = 1;
+static _Bool show_cpu_cores = 1;
static _Bool show_memory = 1;
+static _Bool show_temps = 1;
static ignorelist_t *temp_ignore = NULL;
-
static int mic_init (void)
{
U32 ret;
if (temp_ignore == NULL)
return (1);
- if (strcasecmp("ShowTotalCPU",key) == 0)
+ if (strcasecmp("ShowCPU",key) == 0)
{
- show_total_cpu = IS_TRUE(value);
+ show_cpu = IS_TRUE(value);
}
- else if (strcasecmp("ShowPerCPU",key) == 0)
+ else if (strcasecmp("ShowCPUCores",key) == 0)
{
- show_per_cpu = IS_TRUE(value);
+ show_cpu_cores = IS_TRUE(value);
}
- else if (strcasecmp("ShowTemps",key) == 0)
+ else if (strcasecmp("ShowTemperatures",key) == 0)
{
show_temps = IS_TRUE(value);
}
{
show_memory = IS_TRUE(value);
}
- else if (strcasecmp("TempSensor",key) == 0)
+ else if (strcasecmp("Temperature",key) == 0)
{
ignorelist_add(temp_ignore,value);
}
- else if (strcasecmp("IgnoreTempSelected",key) == 0)
+ else if (strcasecmp("IgnoreSelectedTemperature",key) == 0)
{
int invert = 1;
if (IS_TRUE(value))
return(-1);
}
- if (show_total_cpu) {
+ if (show_cpu) {
mic_submit_cpu(mic, "user", -1, core_util.sum.user);
mic_submit_cpu(mic, "sys", -1, core_util.sum.sys);
mic_submit_cpu(mic, "nice", -1, core_util.sum.nice);
mic_submit_cpu(mic, "idle", -1, core_util.sum.idle);
}
- if (show_per_cpu) {
+ if (show_cpu_cores) {
int j;
for (j = 0; j < core_util.core; j++) {
mic_submit_cpu(mic, "user", j, core_jiffs[j].user);
if (error == 0 && show_temps)
error = mic_read_temps(i);
- if (error == 0 && (show_total_cpu || show_per_cpu))
+ if (error == 0 && (show_cpu || show_cpu_cores))
error = mic_read_cpu(i);
ret = MicCloseAdapter(mic_handle);