Voltha Alarm Management using OpenNMS and Elasticsearch
- Added necessary configuration to run a self-contained instance of
OpenNMS
- Elasticsearch/Logstash is responsible for the interception of voltha
alarms and to forward to OpenNMS
Amendment:
- Cleaned up untouched opennms config files
- Added Dockerfile and scripts to override the default entrypoint script
Change-Id: Id611a330f7274d016281e734ade79d22bfc0356b
diff --git a/compose/docker-compose-elasticsearch.yml b/compose/docker-compose-elasticsearch.yml
new file mode 100644
index 0000000..3bc75fe
--- /dev/null
+++ b/compose/docker-compose-elasticsearch.yml
@@ -0,0 +1,32 @@
+version: '2'
+
+services:
+ elasticsearch:
+ image: docker.elastic.co/elasticsearch/elasticsearch:5.2.2
+ environment:
+ - transport.host=localhost
+ - transport.tcp.port=9300
+ - xpack.security.enabled=false
+ ports:
+ - "9200:9200"
+ - "9300:9300"
+ networks:
+ - docker_elastic
+
+ logstash:
+ build: ./elasticsearch/logstash
+ environment:
+ - log.level=info
+ command: logstash -f /etc/logstash/conf.d/
+ volumes:
+ - ./elasticsearch/logstash/config:/etc/logstash/conf.d
+ ports:
+ - "5000:5000"
+ networks:
+ - docker_elastic
+ depends_on:
+ - elasticsearch
+
+networks:
+ docker_elastic:
+ driver: bridge