Giter Site home page Giter Site logo

aws-big-data-projects / monitor-serverless-datalake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/monitor-serverless-datalake

0.0 1.0 0.0 709 KB

Alerting and notification in a serverless data lake during failures

License: MIT No Attribution

Python 98.15% Makefile 1.85%

monitor-serverless-datalake's Introduction

Monitor ETL Jobs in Serverless Data Lake

Overview

This repository serves as a launch pad for monitoring serverless data lakes in AWS. The objective is to provide a plug and play mechanism for monitoring enterprise scale data lakes. Data lakes starts small and rapidly explodes with adoption. With growing adoption, the data pipelines also grows in number and complexity. It is pivotal to ensure that the data pipeline executes as per SLA and failures be mitigated.

The solution provides mechanisms for the following, 1. Capture state changes across all tasks in the data lake 2. Quickly notify operations of failures as they happen 3. Measure service reliability across data lake โ€“ to identify opportunities for performance optimization

Architecture

The solution highlighted in Orange box, illustrates with serverless services like AWS Lambda & AWS Glue ( These are not included). The design can be easily extended to other services like AWS Fargate.

state_process lambda

The solution has the following components,

  1. Storage : Amazon S3 Keeping it simple, the following S3 buckets are created ,
    • monitor bucket : Houses the monitor database
  2. Monitoring: The monitoring stack has the following components
    • Amazon EventBridge Rules : Captures success & failures in data pipeline

    • Amazon SNS: The messages are published to SNS

    • Monitor Database: The overall states of the data pipeline are captured here

    • Slack Webhooks: Slack is used to notify important events to stakeholders. Slack webhooks to be set up as described in here

      • Refer to the below template for the structure of the notification message

      message-text

      • The slack webhook has to be updated to the AWS Secretes datalake-monitoring as shown below,

      message-text

    • Monitoring Lambda: datalake-monitoring-lambda acts on the messages from SNS in the following ways,

      • Persist state of the data pipeline execution
      • Notify stakeholders via IM on failure
  3. Prerequisites
    • All Lambda functions (functioning as data pipeline) should be configured with destinations to the SNS topic

Deployment

The Cloud Deployment Kit(CDK) has been provided to deploy the solution. Follow the below steps,

  1. Using Python 3.8,
    • cd <path to pyproject.toml>
    • poetry install
  2. Stack deployment :
    • Update ACCOUNT & REGION in ./cdk/config.py
    • cd cdk
    • cdk deploy --all --profile <profile_name>

Note

Remember to destroy the stacks as these will incur costs - cdk destroy --all --profile <profile_name>

monitor-serverless-datalake's People

Contributors

virendhar-aws avatar amazon-auto avatar

Watchers

 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.