Git Product home page Git Product logo

flaskmongoms-grafana-prometheus's Introduction

Overview

This application is containerized python flask REST API using Mongo DB (running as a docker container) as the backend database server.

Installtion and launch

Launching the containers

To launch the network of containers we are using

docker-compose up

This command will launch all the microservices and we can start the testing

pytest unit.py

Files

  • Docker-compose file for launching the various containers (Your python flask app, mongodb, prometheus, grafana)
  • A folder named "student_service" with your python flask app and Dockerfile for building your student service.
  • A folder named "tests" with a python script unit.py for unit testing your python flask app using pytest (by submitting HTTP requests to the different endpoints in the student_service container).
  • A prometheus.yml defining the Prometheus configuration with the endpoint to scrape the metric.
  • A folder named "grafana" with your dashboard and Grafana’s startup configuration
  • readme.md: Provide instructions of how to launch your app and access the various services and run your unit tests.

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.