Giter Site home page Giter Site logo

argus's Introduction

argus

A storage monitoring tool for CDAC's High Performance Computing systems

forthebadge made-with-python forthebadge made-with-python

HitCount contributions welcome License: GPL v3 Codacy Badge

  • Grafana Dashboard

Image

  • Metrics Collector

Image

  • Firebase

Image

Install the following dependencies

  • Install python req: pip install -r requirements.txt
  • Install memcached:sudo apt install memcached libmemcached-tools (for debian)
  • Grafana
  • MySQL
  • Setup a database in Firebase

Usage

Start memcached service

$ memcached

Create the table in MySQL instance

$ \connect root@localhost:3306
CREATE DATABASE cdac_argus;
$ use cdac_argus;

Database command to create the table

CREATE TABLE cachestat( metric_id INT NOT NULL AUTO_INCREMENT, buffers_mb INT NOT NULL, cached_mb INT NOT NULL, hits INT NOT NULL, mbd INT NOT NULL, misses INT NOT NULL, ratio INT NOT NULL, PRIMARY KEY ( metric_id ) );
$ SHOW TABLES;

Start the grafana service

Make sure you have setup the MySQL db correctly as it is required to be the datasource for Grafana

Open localhost:3000 for opening the grafana dashboard

NOTE: If you change the installation settings the port might be different for grafana

Click on CREATE/ + symbol and click import

In the Import via panel json section paste the code from grafana_dashboard.json from this repository

Running the metrics collector

$ sudo python cachestat.py
$ sudo python retrieve_data.py

About the firebase instance

Make sure to make all the necessary changes in the code and use your own firebase db

An example firebase url: https://cdac-argus-default-rtdb.firebaseio.com/

argus's People

Contributors

codacy-badger avatar narutoop avatar sakshatshinde avatar

Watchers

 avatar  avatar

Forkers

rppol

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.