From d61931341176dad9ccff7c967a10d88fe54218fa Mon Sep 17 00:00:00 2001 From: Toshiaki Takahashi Date: Thu, 6 Sep 2018 09:04:29 +0000 Subject: src: Add DMA localagent Change-Id: Ibcee814fbc9a904448eeb368a1a26bbb69cf54aa Signed-off-by: Toshiaki Takahashi --- .../sampleconf/demo-memory-linearreg/analysis.conf | 12 ++++++++ .../demo-memory-linearreg/evaluator.conf | 35 ++++++++++++++++++++++ .../demo-memory-linearreg/read-metrics.conf | 7 +++++ .../demo-memory-linearreg/transmitter.conf | 11 +++++++ .../demo-memory-linearreg/write-redis.conf | 10 +++++++ src/dma/sampleconf/simple-threshold/evaluator.conf | 7 +++++ .../sampleconf/simple-threshold/read-metrics.conf | 17 +++++++++++ .../sampleconf/simple-threshold/transmitter.conf | 11 +++++++ .../sampleconf/simple-threshold/write-redis.conf | 10 +++++++ 9 files changed, 120 insertions(+) create mode 100644 src/dma/sampleconf/demo-memory-linearreg/analysis.conf create mode 100644 src/dma/sampleconf/demo-memory-linearreg/evaluator.conf create mode 100644 src/dma/sampleconf/demo-memory-linearreg/read-metrics.conf create mode 100644 src/dma/sampleconf/demo-memory-linearreg/transmitter.conf create mode 100644 src/dma/sampleconf/demo-memory-linearreg/write-redis.conf create mode 100644 src/dma/sampleconf/simple-threshold/evaluator.conf create mode 100644 src/dma/sampleconf/simple-threshold/read-metrics.conf create mode 100644 src/dma/sampleconf/simple-threshold/transmitter.conf create mode 100644 src/dma/sampleconf/simple-threshold/write-redis.conf (limited to 'src/dma/sampleconf') 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 + + ModulePath "/opt/dma/lib" + LogTraces true + Interactive false + Import "analysis" + #Import "write_nova-migrate" + + + + + 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 + + + + + WarningMax 7000000000 + Hits 5 + + + + + +LoadPlugin match_regex +LoadPlugin match_value + + + + Plugin "dma" + #Type "^memory$" + #TypeInstance "^show_" + + + Min 7000000000 + + + Plugin "write_http/mynode" + + + + Plugin "write_redis/mynode" + + + Plugin "threshold" + + 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 @@ + + Interval 0.1 + + + ValuesAbsolute true + ValuesPercentage false + 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 + + + URL "http://192.0.2.11:12345/failure" + Format "Json" +# Select Metrics or Notification + Metrics false + Notifications true + BufferSize 1024 + + 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 + + + Host "localhost" + Port "6379" + Timeout 2000 + MaxSetDuration 60 + + + 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 @@ + + Interval 1 + + + Exec "heat-admin:heat-admin" "sudo" "-i" "threshold" + + 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 @@ +# +# Interval 0.1 +# + +# +# Interface "eth0" +# IgnoreSelected false +# ReportInactive true +# UniqueName false +# + + + Interval 0.1 + + + Connection "qemu:///system" + 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 + + + URL "http://overcloud-controller-0.internalapi:12345/failure" + Format "Json" +# Select Metrics or Notification + Metrics false + Notifications true + BufferSize 1024 + + 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 + + + Host "localhost" + Port "6379" + Timeout 2000 + #MaxSetDuration 86400 + + + -- cgit 1.2.3-korg