Jump to: navigation, search

Distributed Monitoring

Revision as of 14:05, 26 September 2017 by Takahashi.tsc (talk | contribs) (Implementation)

Distributed Monitoring


Monitoring and its application are becoming key factor for service lifecycle management of various systems such as NFV and cloud native platform. Distributed monitoring approach is one of the framework which enables flexible and scalable monitoring that can work with current OpenStack telemetry and monitoring framework. In this documantation, you can find the architecture and how to implement this framework to your environment.

Who will be interested in ?

  • For infrastracture operators who want to collect detailed data in short intarval in their compute nodes.
  • For NFV operators who want to know abnormal behaivers of Virtual Network Functions.


In this architecture includes several functions for monitoring, collector, in-memory database, analysis engine and notification. Below picture shows the architecture of distributed monitoring. Each compute node has it own monitoring function following this architecture.


  • Poller/Notification process collect data from guest OSs and host OS using SNMP protocol, libvirt API, OpenStack API, etc.
  • Collector format data suitable for in-memory database and insert these data into database.
  • Analytics Engine analyzes data on in-memory database, you can use several analytics engine like machine learning libraries. And also you can use evaluator that function is threshold monitoring directly.
  • Transmitter send analytics results and alarms that are caught on threshold to Operation Support System, OpenStack API and Orchestrator.


short interval, scalable, mq非依存

Use Cases

  • Micro Burst Traffic
  • Memory Leak
  • Abnormal behaviour of software/hardware
  • ...


(For distributed monitoring, some open source software are useful. ...) You can learn an example of how to implement distributed monitoring with open source software.



collectd is a daemon which collects system and application performance metrics periodically and provides mechanisms to store the values in a variety of ways. You can use collectd as Poller/Notification to gather metrics and Collector to store the metrics in Redis.

collectd's official page


Redis is an in-memory data structure store, used as a database, cache and message broker.

Redis's official page


scikit-learn is simple and efficient tools for data mining and data analysis. You can use scikit-learn as light weight machine learning library for Analytics Engine.

scikit-learn's official page


In computing nodes, controller nods and every nodes that you want to monitor, you can setup following example. In this example, ubuntu16.04 is selected as each node's OS.

  1. set up OpenStack environment using DevStack or manual installation
  2. install collectd, redis and some other python library
  3. get demo code of DMA
# apt install collectd redis python-pip python-dev 



 <Plugin "write_redis">
   <Node "dma">
       Host "localhost"
       Port "6379"
       Timeout 1000



#save 300 10
#save 60 10000


Who is contributing to this guide?