GithubHelp home page GithubHelp logo

jzeng151 / whalewatch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oslabs-beta/whalewatch

0.0 0.0 0.0 3.53 MB

WhaleWatch is an open-source health monitoring app for Docker containers.

Home Page: http://www.whalewatchapp.com/

License: MIT License

JavaScript 88.36% HTML 2.02% SCSS 9.62%

whalewatch's Introduction

WhaleWatch

Table of Contents

What is WhaleWatch?

WhaleWatch is a lightweight, open-source monitoring tool for Docker. WhaleWatch enables developers to monitor Docker containers through a dashboard that delivers real-time metrics backed by intuitive data visualizations. Developers will be able to keep an eye on the containers that are critical for smooth technical and business operations and also proactively take action before troubles arise.

WhaleWatch Features

  • The ability to collect and display Docker metrics
  • Monitor containers and identify trends through data visualizations
  • Connect to Docker Daemon
  • Drag and drop functionality to stop, start, and restart containers

Installation and Setup

WhaleWatch can be installed and set up with the following steps:

  1. Fork and clone the repo
  2. Run npm install
  3. Create a .env file in your top level folder and add a Postgres URI as a variable labeled DB_URI
  4. Run the following command in your Postgres instance:
CREATE TABLE IF NOT EXISTS users (
  id SERIAL PRIMARY KEY,
  username varchar(50) UNIQUE NOT NULL,
  email varchar(100) UNIQUE NOT NULL,
  password varchar(100) NOT NULL
);

CREATE TABLE IF NOT EXISTS containers (
  id SERIAL PRIMARY KEY,
  dockerId varchar(100) NOT NULL,
  name varchar(100) NOT NULL,
  size varchar(50),
  status varchar(50),
  state varchar(50),
  owner integer REFERENCES users(id) NOT NULL
);

CREATE TABLE IF NOT EXISTS stats (
  id SERIAL PRIMARY KEY,
  container integer REFERENCES containers(id) NOT NULL,
  timestamp date NOT NULL,
  cpuUsage decimal NOT NULL,
  memUsage decimal NOT NULL,
  netIo varchar(50) NOT NULL,
  blockIo varchar(50) NOT NULL,
  pids integer NOT NULL,
  reqPerMin integer
)
  1. Ensure Docker Daemon is running on your computer.
  2. Run npm run dev

Navigating and Using WhaleWatch

WhaleWatch is a tool that developers will be able to utilize through their browsers as a web application.

Dashboard

Upon launching the application, the user will be asked to sign up or provide login credentials. Once the sign-up or login step has been completed, the user will be redirected to the main WhaleWatch dashboard. This dashboard will contain key data and metrics such as:

  • Average CPU Usage
  • Average Memory Usage
  • Average Net I/O
  • Average Block I/O
  • Average PIDs

Container

Furthermore, in the Container Health Overview section, developers will be able to quickly glean insights into which containers are healthy (blue whales) and which containers require attention (red whales).

Within the Containers component, developers have the ability to easily start, stop and restart containers with ease through intuitive drag and drop functionality. The containers are displayed and organized categorically by “Active” and “Inactive” containers.

Meet the Team

whalewatch's People

Contributors

rjpatt avatar matildawangh avatar anniee825 avatar philky-m avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.