GithubHelp home page GithubHelp logo

aiops_with_jenkins_project's Introduction

๐Ÿš€ Problem Statement

Create an End to End Machine Learning architecture which includes 
Model Training, Testing and operationalization, 
Infrastructure and endpoint monitoring.

โœจ Architecture

test drawio (2)

๐Ÿ”ฅ Technologies Used

1. Python 
2. shell scripting 
3. aws cloud Provider 
4. Prometheus And grafana
5. FastApi for endpoint 
6. S3bucket - as feature store and model registry 
7. CI-CD tool Jenkins

๐Ÿ‘ท Initial Setup

conda create --prefix ./env python=3.9
conda activate ./env 
pip install -r requirements.txt 

๐Ÿ’ญ Setup S3 bucket

1. Feature Store s3 bucket with lambda call on put event
2. Model Registry - Testing 
                  - production

๐Ÿ”… Configuration for jenkins

image image

Install jenkins on ec2 and make a webhook with github repository to access it whenever updated on push.
Create 3 jobs Train, Test and Deploy. While creating Seperate jobs remember to put jenkins-jobs-script in it.
I have written 3 sepreate script in it.

Create a master pipeline to run different train,test and deploy.

๐Ÿ“ Develop Lambda Trigger

image image

Create Lambda Trigger on S3 Feature store on put event, use python3.7 in lambda as it has request library pre-installed
Remote trigger Master pipeline to run all the stages.

๐Ÿ“Š Configuration File

Maintain Configuration file. Changes required in 
- Feature-Store
- Model Registry 
- Email Params
    - Please put gmail application key in it else you will get error
- Ml_Model_params

โœ๏ธ Configuration for Prometheus

image

Install prometheus on Ec2 machine. In configuration file add scrape job set in endpoints.

 
  - job_name: "python_endpoint"
  
    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
      - targets: ["localhost:5000"]
      
  - job_name: "wmi_exporter"
  
    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
      - targets: ["localhost:9182"]

๐Ÿ“‰ Configuration for Grafana

image

Install grafana and it will run on port 3000 by default.
Configure prometheus in it and create monetoring dash board.

โ„๏ธ END

Free free to improve this project and remove issues if you find any as nothing is perfect.

Aiops_with_jenkins_project

aiops_with_jenkins_project's People

Contributors

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