about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorHeikki Kallasjoki <fis@zem.fi>2018-11-17 02:52:19 +0000
committerHeikki Kallasjoki <fis@zem.fi>2018-11-30 01:28:01 +0000
commit9784d8743daf4eb4d298c15ae6d3c8fa19faf486 (patch)
tree3403741fc244bef20d991f89f6676f1eab1438b3 /README.md
parent5ed9c0224214147e9e8321e491d7b4556b818e49 (diff)
downloadnano-exporter-9784d8743daf4eb4d298c15ae6d3c8fa19faf486.tar.gz
nano-exporter-9784d8743daf4eb4d298c15ae6d3c8fa19faf486.tar.xz
nano-exporter-9784d8743daf4eb4d298c15ae6d3c8fa19faf486.zip
Add the meminfo collector.
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index e9e6abb..7ea87fa 100644
--- a/README.md
+++ b/README.md
@@ -42,6 +42,7 @@ including generated metrics, labels and configuration options.
 | ---- | ----------- |
 | [`cpu`](#cpu) | CPU usage from `/proc/stat` and CPU frequency scaling data from sysfs. |
 | [`hwmon`](#hwmon) | Temperature, fan and voltage sensors from `/sys/class/hwmon`. |
+| [`meminfo`](#meminfo) | Memory usage statistics from `/proc/meminfo`. |
 | [`network`](#network) | Network device transmit/receive statistics from `/proc/net/dev`. |
 | [`textfile`](#textfile) | Custom metrics from `.prom` text files dropped in a directory. |
 | [`uname`](#uname) | Node information returned by the `uname` system call. |
@@ -106,6 +107,18 @@ chip.
 The values are by default directly as reported in sysfs: there's no
 built-in scaling. TODO: scaling options.
 
+### `meminfo`
+
+The `meminfo` collector exposes all the rows from `/proc/meminfo`
+under the metric name `node_memory_X`. The part *X* corresponds to the
+label in `/proc/meminfo`, with the exception that non-alphanumeric
+characters are replaced with `_`, and any remaining trailing `_`s are
+removed.
+
+If the line in `/proc/meminfo` has a `kB` suffix, the suffix `_bytes`
+is also appended to the metric name, and the value multiplied by 1024
+to convert it to bytes.
+
 ### `network`
 
 Metrics and labels: