summaryrefslogtreecommitdiffstats
path: root/src/dma/sampleconf
diff options
context:
space:
mode:
Diffstat (limited to 'src/dma/sampleconf')
-rw-r--r--src/dma/sampleconf/demo-memory-linearreg/analysis.conf12
-rw-r--r--src/dma/sampleconf/demo-memory-linearreg/evaluator.conf35
-rw-r--r--src/dma/sampleconf/demo-memory-linearreg/read-metrics.conf7
-rw-r--r--src/dma/sampleconf/demo-memory-linearreg/transmitter.conf11
-rw-r--r--src/dma/sampleconf/demo-memory-linearreg/write-redis.conf10
-rw-r--r--src/dma/sampleconf/simple-threshold/evaluator.conf7
-rw-r--r--src/dma/sampleconf/simple-threshold/read-metrics.conf17
-rw-r--r--src/dma/sampleconf/simple-threshold/transmitter.conf11
-rw-r--r--src/dma/sampleconf/simple-threshold/write-redis.conf10
9 files changed, 120 insertions, 0 deletions
diff --git a/src/dma/sampleconf/demo-memory-linearreg/analysis.conf b/src/dma/sampleconf/demo-memory-linearreg/analysis.conf
new file mode 100644
index 00000000..33faee1d
--- /dev/null
+++ b/src/dma/sampleconf/demo-memory-linearreg/analysis.conf
@@ -0,0 +1,12 @@
+LoadPlugin python
+<Plugin python>
+ ModulePath "/opt/dma/lib"
+ LogTraces true
+ Interactive false
+ Import "analysis"
+ #Import "write_nova-migrate"
+
+ <Module "analysis">
+ </Module>
+</Plugin>
+
diff --git a/src/dma/sampleconf/demo-memory-linearreg/evaluator.conf b/src/dma/sampleconf/demo-memory-linearreg/evaluator.conf
new file mode 100644
index 00000000..59af25b4
--- /dev/null
+++ b/src/dma/sampleconf/demo-memory-linearreg/evaluator.conf
@@ -0,0 +1,35 @@
+LoadPlugin threshold
+<Plugin "threshold">
+ <Host "localhost">
+ <Plugin "dma">
+ <Type "memory">
+ WarningMax 7000000000
+ Hits 5
+ </Type>
+ </Plugin>
+ </Host>
+</Plugin>
+
+LoadPlugin match_regex
+LoadPlugin match_value
+<Chain "PostCache">
+ <Rule "write_dma">
+ <Match "regex">
+ Plugin "dma"
+ #Type "^memory$"
+ #TypeInstance "^show_"
+ </Match>
+ <Match "value">
+ Min 7000000000
+ </Match>
+ <Target "write">
+ Plugin "write_http/mynode"
+ </Target>
+ </Rule>
+ <Target "write">
+ Plugin "write_redis/mynode"
+ </Target>
+ <Target "write">
+ Plugin "threshold"
+ </Target>
+</Chain>
diff --git a/src/dma/sampleconf/demo-memory-linearreg/read-metrics.conf b/src/dma/sampleconf/demo-memory-linearreg/read-metrics.conf
new file mode 100644
index 00000000..1926aaa5
--- /dev/null
+++ b/src/dma/sampleconf/demo-memory-linearreg/read-metrics.conf
@@ -0,0 +1,7 @@
+<LoadPlugin memory>
+ Interval 0.1
+</LoadPlugin>
+<Plugin memory>
+ ValuesAbsolute true
+ ValuesPercentage false
+</Plugin>
diff --git a/src/dma/sampleconf/demo-memory-linearreg/transmitter.conf b/src/dma/sampleconf/demo-memory-linearreg/transmitter.conf
new file mode 100644
index 00000000..e9d5bb19
--- /dev/null
+++ b/src/dma/sampleconf/demo-memory-linearreg/transmitter.conf
@@ -0,0 +1,11 @@
+LoadPlugin write_http
+<Plugin write_http>
+ <Node "mynode">
+ URL "http://192.0.2.11:12345/failure"
+ Format "Json"
+# Select Metrics or Notification
+ Metrics false
+ Notifications true
+ BufferSize 1024
+ </Node>
+</Plugin>
diff --git a/src/dma/sampleconf/demo-memory-linearreg/write-redis.conf b/src/dma/sampleconf/demo-memory-linearreg/write-redis.conf
new file mode 100644
index 00000000..348ad02f
--- /dev/null
+++ b/src/dma/sampleconf/demo-memory-linearreg/write-redis.conf
@@ -0,0 +1,10 @@
+LoadPlugin write_redis
+<Plugin write_redis>
+ <Node "mynode">
+ Host "localhost"
+ Port "6379"
+ Timeout 2000
+ MaxSetDuration 60
+ </Node>
+</Plugin>
+
diff --git a/src/dma/sampleconf/simple-threshold/evaluator.conf b/src/dma/sampleconf/simple-threshold/evaluator.conf
new file mode 100644
index 00000000..9ebb65fc
--- /dev/null
+++ b/src/dma/sampleconf/simple-threshold/evaluator.conf
@@ -0,0 +1,7 @@
+<LoadPlugin exec>
+ Interval 1
+</LoadPlugin>
+<Plugin exec>
+ Exec "heat-admin:heat-admin" "sudo" "-i" "threshold"
+</Plugin>
+
diff --git a/src/dma/sampleconf/simple-threshold/read-metrics.conf b/src/dma/sampleconf/simple-threshold/read-metrics.conf
new file mode 100644
index 00000000..d3960be0
--- /dev/null
+++ b/src/dma/sampleconf/simple-threshold/read-metrics.conf
@@ -0,0 +1,17 @@
+#<LoadPlugin interface>
+# Interval 0.1
+#</LoadPlugin>
+
+#<Plugin interface>
+# Interface "eth0"
+# IgnoreSelected false
+# ReportInactive true
+# UniqueName false
+#</Plugin>
+
+<LoadPlugin virt>
+ Interval 0.1
+</LoadPlugin>
+<Plugin virt>
+ Connection "qemu:///system"
+</Plugin>
diff --git a/src/dma/sampleconf/simple-threshold/transmitter.conf b/src/dma/sampleconf/simple-threshold/transmitter.conf
new file mode 100644
index 00000000..29a186e4
--- /dev/null
+++ b/src/dma/sampleconf/simple-threshold/transmitter.conf
@@ -0,0 +1,11 @@
+LoadPlugin write_http
+<Plugin write_http>
+ <Node "mynode">
+ URL "http://overcloud-controller-0.internalapi:12345/failure"
+ Format "Json"
+# Select Metrics or Notification
+ Metrics false
+ Notifications true
+ BufferSize 1024
+ </Node>
+</Plugin>
diff --git a/src/dma/sampleconf/simple-threshold/write-redis.conf b/src/dma/sampleconf/simple-threshold/write-redis.conf
new file mode 100644
index 00000000..84eb53d2
--- /dev/null
+++ b/src/dma/sampleconf/simple-threshold/write-redis.conf
@@ -0,0 +1,10 @@
+LoadPlugin write_redis
+<Plugin write_redis>
+ <Node "mynode">
+ Host "localhost"
+ Port "6379"
+ Timeout 2000
+ #MaxSetDuration 86400
+ </Node>
+</Plugin>
+