Code Monkey home page Code Monkey logo

cloud-monitoring's Introduction

Redshift monitoring and reporting

Assumptions

  • Python 3.7.3 is installed and properly configured.
  • Required libraries are installed.
  • User running the script has access to the folder - /assets.
  • Folders /graph_images and /assets exist.

Required libraries

  • matplotlib v3.0.3 ($sudo pip install matplotlib==3.0.3)
  • numpy v1.16.2 ($sudo pip install numpy==1.16.2)
  • pandas v0.24.2 ($sudo pip install pandas==0.24.2)
  • Pillow v7.0.0 ($sudo pip install Pillow==7.0.0)
  • psutil v5.6.3 ($sudo pip install psutil==5.6.3)
  • psycopg2 v2.8.3 ($sudo pip install psycopg2-binary==2.8.3)
  • seaborn v0.9.0 ($sudo pip install seaborn==0.9.0) ​

INSTALLATION

  • Fill in the database (lines 12-16) and email (lines 99-101) credentials in Main.py file.
  • Install all the required libraries.
  • Run $python Main.py. ​

Usage

  • When the program is executed, it connects to the database, and extracts data for generating graphs in the form of images.
  • The program produces images in /graph_images and csv files in the default directory.
  • It uses these files, and the html inside to send emails to respective email addresses after connecting to the smtp server.
  • When a new csv file is created in the above folder, its contents are read.
  • The python file Main_test.py is for testing first half of the program i.e. if the program generates images or not.

REFERENCES

​ N/A

cloud-monitoring's People

Contributors

safi2510 avatar ashandrog avatar tcederquist avatar

Watchers

James Cloos avatar  avatar

Forkers

ashandrog

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.