Giter VIP home page Giter VIP logo

kcd-sp-2024's Introduction

Kubernetes Community São Paulo - 2024

Simplificando o Monitoramento de aplicações NodeJS.

Starting Kind Cluster

 kind create cluster -n kcdsp --config kind.yaml

Install Grafana Tempo

kubectl apply -f tempo.yaml

Build the NodeJS Voting App

docker build -t nodejs-voting-app:kcdsp nodejs-voting-app

Build the NodeJS Voting App

  • Replace the IMAGE
kubectl apply -f nodejs-voting-app/deployment.yaml

Install CertManager

kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.14.2/cert-manager.yaml

Install the OpenTelemetry Operator

kubectl apply -f https://github.com/open-telemetry/opentelemetry-operator/releases/latest/download/opentelemetry-operator.yaml

Deploy the OpenTelemetry Collector

kubectl apply -f otel.yaml

Forward a local port to your application

kubectl port-forward -n kcdsp svc/nodejs-voting-app-service 8080:80

Forward a local port to your Grafana Instance

kubectl port-forward -n kcdsp svc/grafana 3000:3000

Apply the auto-instrumentation manifest

kubectl apply -f instrumentation.yaml

Set the required annotation into your NodeJS app.

kubectl patch deployment nodejs-voting-app  -n kcdsp -p '{"spec": {"template":{"metadata":{"annotations":{"instrumentation.opentelemetry.io/inject-nodejs":"true"}}}} }'

Create some traffic to your app.

curl -X POST localhost:8080/vote -H "Content-Type: application/json" -d '{"candidate": "1"}'

kcd-sp-2024's People

Contributors

yuriolisa avatar

Stargazers

Andre Pedrotti avatar  avatar Rogerio B. avatar Vinicius Fialho avatar José Oliveira (Zeca) avatar Hernani Soares avatar

Watchers

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