Git Product home page Git Product logo

opensearch-tracing's Introduction

Opensearch-Tracing

Tracing is an important factor while analysing our application. We often try to understand the issues occured in a microservice architecture, where the latency is high and which service did not response properly etc.

Tracing is one of the way to figure out your application issues and to see all the connections in the form of a service map.

The scope of this POC is understand how we can implement necessary components in kubernetes environment and send the traces to opensearch dashboard.


POC Details


  • We will create a sample web based applicaiton with a few API endpoints with traces enabled at the code level.
  • These traces will be pulled by Jaeger agent
  • Jaeger agent will fetch the traces and send to the collector.
  • The open telemetry collector wil lsend the data to data-prepper.
  • Data prepper will prepare the data to be accepted by Opensearch.
  • Finally, we will observe the data on Opensearch Tracing dashboard.

Pre-Requisites


  • AWS Opensearch instance up and running in AWS.
  • Kubernetes cluster where we will run the above mentioned components.

Setup


  1. Lets create the data prepper deployment in our kubernetes cluster. Make sure to update the data-prepper manifest file with opensearch URL and credentials.

         kubectl apply -f data-prepper.yaml 
    
  2. Next, we will create jaeger-agent to pull the traces from our application.

         kubectl apply -f jaeger-agent.yaml
    
  3. Now, its time to create the otel collector by running the below command

         kubectl apply -f otel-collector.yaml
    
  4. Finally, lets create our sample applicaiton

         kubectl apply -f sample-hotrod-app.yaml
    
  • Now we have running pods, services and configmaps with all the required configurations.
  • The collection between these components are done by using the service endpoint.

Access the application and traces


  • The application will be accessible on a node port (defined in the sample-applicaiton service).
  • Once the applicaiton is accessible, hit the buttons one by one to generate the traces.
  • These traces will be processed and finally send to opensearch dashbaord.
  • We can access the opensearch dashboard --> Observability --> Trace Analytics

We should be seeing some tarces on the dashboard.

In case we do not see the traces within a few minutes, check the logs of each pod one by one to confirm if they are running fine.

opensearch-tracing's People

Contributors

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