Giter Club home page Giter Club logo

redeye's Introduction

Motivation

Redshift is the distributed data warehousing solution by AWS. The redshift monitoring console displays:

  1. Hardware metrics like CPU, Disk Space, Read/Write IOPs for the clusters.
  2. Query level information such as:
    a. Expected versus actual execution plan
    b. Username query mapping
    c. Time Taken for query

Redeye Overview

The tool gathers the following metrics on redshift performance:

  1. Hardware Metrics:
    a. CPU Utilization
    b. Disk Space Utilization
    c. Read/Write IOPs
    d. Read Latency/Throughput
    e. Write Latency/Throughput
    f. Network Transmit/Throughput

  2. Software Metrics:
    a. Aggregate Metrics:
    - Queries fired by user
    - Queries in Queue/Running/Returning State in each queue
    - Average time taken in Queue/Running/Returning State in each queue
    b. Query Level Metrics: Number of diskhits, Number of rows broadcast across nodes, queue used and user at a query_id granularity
    c. Table Level Metrics: Least and most used tables in warehouse

There is a short post highlighting some of the insights that can be gained from this utility.

Requirements:

For this tool to work, you will need:

  1. Statsd endpoint
  2. Opentsdb endpoint
  3. MySQL endpoint
  4. Redshift Credentials

Quick Setup

vim $REDYEYE/redshift_monitoring/base_config.py

This file contains configuration properties common to all the clusters. Edit the statsd, opentsdb and mysql endpoints here.

mkdir $REDEYE/cluster_new
cp $REDEYE/cluster_dir/config.py $REDEYE/cluster_new/
vim $REDEYE/cluster_new/config.py

This file will contain configuration specific to your redshift console. Change the credentials to point to your cluster. You should provide username and password that can access the redshift system tables.

cp $REDEYE/cluster_dir/start_monitoring.py $REDEYE/cluster_new/

python $REDEYE/cluster_new/start_monitoring.py

The tool has been designed to run for an hour. It can be scheduled as part of a workflow scheduler like Azkaban to keep the monitoring persistent.

redeye's People

Contributors

saharshoza avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.