Giter Site home page Giter Site logo

ml-monitoring-with-grafana's Introduction

ML Monitor

This codebase builds on the original ML_monitor as presented in https://github.com/wiatrak2/ml_monitor This repository work on local installation of Python only and DOES NOT Support Colab at the moment.

Requirements:

Installation

  1. Clone and enter the repository
git clone https://github.com/sohiniroych/ML-Monitoring-with-Grafana.git
cd ML-Monitoring-with-Grafana
  1. Install package using pip
pip install .
  1. Install and Setup docker
sudo snap install docker
sudo apt install docker-compose

This process will set up the docker image that houses the Grafana Dashboad!

Processing (shown in the video)

  1. Enable docker using the command
cd docker
sudo docker-compose up
  • docker directory contains an easy setup of tools used for metrics visualization and analysis. These are Prometheus and Grafana. You should firstly start these programs, with docker-compose up command. Now you should be able to reach the Grafana admin panel on http://localhost:3000.
  • Logging in for the first time use username: admin, password: ml_monitor
  1. To set up the ml_monitor sensing through post 9090, open a separate terminal and enter the following:
python
import ml_monitor
ml_monitor.control.start()

You will get a message that a Prometheus UI should be reachable on http://localhost:9090.

  1. Setup Jupyter notebook and open the file "ML_minitoring_Grafana.ipynb" Run this file. The first part will train the model and in the end random test samples will be generated to mimic a production setup. Increase the number of "epochs" to run for a longer Production-like setup

  2. Open the Grafana dashboard at http://localhost:3000 and monitor the "n_rmse" metric.

Congratulations, now you know how to monitor metrics at production time!

ml-monitoring-with-grafana's People

Contributors

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