Giter VIP home page Giter VIP logo

monitoring-workshop's Introduction

Monitoring Workshop

Code to deploy all necessary tools for the monitoring workshop.

Prerequisites

  1. A kubernetes cluster to deploy all elements. You can use one of the following local clusters:

  2. kubectl installed and pointing to local cluster context. Installation tutorial here.

  3. Helm installed locally. Installation tutorial here.

Stack deployment

To deploy stack use the following script:

./deploy_stack.sh

Cleaning environment. Deleting stack.

To delete all the stack use the following script:

./delete_stack.sh

Accessing UI via web browser

Once deployed stack, web interfaces can be exposed via port-forward (mapping the pod application port to a local port), to access the service via localhost:port.

Note: This is the easiest way to expose a service locally. Another options to expose services involve using ingresses, Nodeport/LoadBalancer services, etc. More information about accesing apps in a cluster here.

Accessing Prometheus UI

  1. Expose Prometheus port.

    # Get Prometheus Pod Name
    export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
    
    # Expose Prometheus port (9090) via port-forward
    kubectl --namespace default port-forward $POD_NAME 9090
  2. Go to http://localhost:9090 in a web browser to access prometheus UI.

Accessing Grafana UI

  1. Get grafana 'admin' password:

    kubectl get secret --namespace default grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
  2. Expose Grafana port.

    # Get Grafana Pod Name
    export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=grafana" -o jsonpath="{.items[0].metadata.name}")
    
    # Expose Grafana port (3000) via port-forward
    kubectl --namespace default port-forward $POD_NAME 3000
  3. Go to http://localhost:3000 in a web browser to access grafana UI. Access using 'admin' and password from step 1.

Accessing Angular App UI

  1. Expose angular-app port.

    # Get angular-app Pod Name
    export POD_NAME=$(kubectl get pods --namespace default -l "app=angular-app" -o jsonpath="{.items[0].metadata.name}")
    
    # Expose angular-app port (80) via port-forward to local port 8080
    kubectl --namespace default port-forward $POD_NAME 8080:80
  2. Go to http://localhost:8080 in a web browser to access angular-app UI.

monitoring-workshop's People

Contributors

alejandrolr avatar

Stargazers

manuel.cruanes avatar Pedro Amador Rodríguez avatar Alejandro Niño avatar Miguel Sanz avatar Beatriz avatar

Watchers

Pedro Amador Rodríguez avatar Miguel Sanz 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.