Code Monkey home page Code Monkey logo

aws_metrics-service's Introduction

AWS Capacity Report handler

This tool must help AWS metrics reports generation to performance analysis.

Running the project

Runnning locally

With nodeJS installed, execute the commands:

  • To install dependencies npm install
  • Then run with npm run serve to serve the HTML to handle the CSV files.

Runnning with Docker

Run docker composer up and it will initialize the database and serve the HTML to handle the CSV files.


Development context

Recently changed from Laravel/Angular dev into DevOps, where most of our infrastructure are on AWS. There is a report used to keep track of our server's instances performance metrics, today this report is done manually.

๐Ÿ˜ฎโ€๐Ÿ’จ Building report manually

AWS CPU and Memory metrics data are extracted from a dashboards as CSV reports, so they are formatted: numbers fixed and business period filtered. Data is pasted into a sheet with instances label as header, when all days of the week are completed, the week report is compiled with day's data.

How does it work?

Data from CSV file is treated, filtered by business work time and grouped by day and XLSX workbook is generated, a sheet / day.

  • Week data processing to be developed

  • Simplistic sequence diagram of data flow. Async methods to return data within these shown methods need to be improved. Data flow from raw file reading to XLSX report generation

Main structures

Classes diagram Data structures
Class Functionally
Queue Read raw files directory to get files queue.
AWS File Handler Process data from CSV and format into treated data to report generation.
AWS Metrics Controller Controls the workflow: Files on queue > Get environment Metadata > Process and format CSV to get metrics data > Build/update XLSX reports
MetricsXLSXReportService Generate the output XLSX from metrics formattedData
MetricsService Handle metrics filters and communicate with database formattedData

๐Ÿ“Œ I'm trying to improve tasks/development tracking, also mapping identified technical debts to further improvements.

aws_metrics-service's People

Contributors

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