Skip to content

Operations Monitoring & Analysis with Apache NiFi, Zeppelin, and Spark

Notifications You must be signed in to change notification settings

randerzander/TechOps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project's intent is to demonstrate the use of Apache NiFi (and NiFi MiNiFi) to collect and make available application and device information.

The containers are pre-configured to run:

  1. A basic Python HTTP server
  2. nmon for generating snapshots of host performance and configuration data
  3. Apache NiFi and Apache NiFi subproject MiNiFi to gather metadata from Consul, logs from HTTP server, nmon, 'netstat', and 'ps' output
  4. Apache Zeppelin to display a basic operational view of data gathered from containers by NiFi and MiNiFi

Overview Diagram:

overview

This project uses features from unreleased NiFi 1.2.0. To run this yourself, you'll need to build it from master:

git clone https://github.com/apache/nifi
cd nifi
mvn clean package -DskipTests
cp nifi-assembly/target/nifi-1.2.0-SNAPSHOT-bin.tar.gz ~/projects/TechOps/containers/monitor

Build and run containers:

docker build -t app containers/app
docker-compose up

Build will take 20ish minutes. About 30 seconds after successful start, the following web UIs should be accessible:

  1. NiFi at localhost:8080/nifi
  2. Zeppelin at localhost:8081

Data generated by the containers is saved in the 'data' directory of this project.

To increase the number of web servers:

docker-compose scale web-service.dev=10

If you want to avoid running the full stack, you may use sample data provided for convenience:

rm -rf data/
tar -xzvf data.tgz
docker-compose up zeppelin.dev

You may then explore the sample data in Zeppelin.

Use Zeppelin's "Run All" feature to run all notes in DeviceRegistry-Setup before you can generate the charts in the DeviceRegistry notebook.

Sample Graphs:

one

two

About

Operations Monitoring & Analysis with Apache NiFi, Zeppelin, and Spark

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published