Example yaml master
Sapan Bhatia [Mon, 25 Nov 2013 17:05:00 +0000 (12:05 -0500)]
example.yaml [new file with mode: 0644]

diff --git a/example.yaml b/example.yaml
new file mode 100644 (file)
index 0000000..e1e50c3
--- /dev/null
@@ -0,0 +1,21 @@
+name: princeton_aggregator
+output: xml
+
+# The list of aggregation recipes
+# - Be default, all data is aggregated into one variable
+# - To aggregate into multiple variables, enclose the part of the regular expression corresponding
+#   to that variable in parenthesis.
+# - You can group multiple items into parenthesis. In that case, you get w * y * ... z variables, where w, y, ... correspond to the number of unique occurrences of the grouped variables.
+
+entries:
+# Group the CPU utilization of all nodes into one variable
+- name: cpu
+  regex: node\d+\.princeton\.vicci\.org/cpu-\d+/cpu-idle.rrd
+  ds: value
+  fn: sum
+
+# Group CPU utilization into variables corresponding to the node name.
+- name: memory
+  regex: (node\d+\.princeton\.vicci\.org)/memory/memory-used.rrd
+  ds: value
+  fn: sum