Git Product home page Git Product logo

bizzaboassignment's Introduction

Bizzabo Home Assignment

Presented here is a boilerplate for monitoring a web application using Grafana and Prometheus.

Installation

  • Pull the repo git pull https://github.com/Leekao/BizzaboAssignment.git
  • Inside webApp run docker build . -t bizzabo-app . (on some Docker versions this might be docker buildx build . -t bizzabo-app)

Docker

  • For a simple Docker example run docker-compose up from the project root folder
  • Grafana: http://localhost:3001/ (user/password: admin/admin, the Dashboard is under "General").
  • Prometheus : http://localhost:9090/
  • WebApp: http://localhost:9999/
  • AlertManager: http://localhost:9093/

K8S (Local)

  • In order to use k8s You'll need to change k8s/grafana.yml and fix the absolute path to fit your path, ABSOLUTE path only!
  • Run kubectl apply -f k8s from the project root folder
  • Access any of the services using the nodePorts (type kubectl get services for a list of the services, under PORTS you'll see the nodePort, the schema is [internal port]:[node port]/TCP)
  • The Bizzabo web app is available on it's NodePort or through nginx

Alerts

This boilerplate supports a webhook alert, edit the file alertmanager-cm.yml and insert your discord/slack URL. I used a requestbin url for testing and I advise you to do the same

When Implementing For Production

  • The mounts for Grafana needs to change from hostPath to a persistent volume claim
  • The services and the nginx should be replaced by ingress controller and ingress (with TLS termination) or to ClusterIP
  • The deployments have default resource limits or requirements, this needs to be fine-tuned before deploying to production
  • The webApp is currently a single pods, this needs to be fine-tuned before deploying to production (change the value of replicas)
  • Since on local mode the webApp is built on the host the image pull policy for the webApp deployment is IfNotPresent, when switching to production this will probably need to change and pull the image from a Docker repository.
  • change the webhook_url on AlertManager to proper url

bizzaboassignment's People

Contributors

leekao avatar

Watchers

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