Giter VIP home page Giter VIP logo

k8s-pet-clinic-otel's Introduction

k8s-pet-clinic-splunk-otel

prereq

  • Kubernetes cluster.
  • PORT 8080 open on the machine

Deploy the non-instrumented version of the pet clinic

kubectl apply -f namespace.yaml
kubectl apply -f spring-petclinic.yaml
kubectl apply -f spring-service.yaml
  • Validate that you can see the pods running
kubectl -n petclinic get pods 
  • Check the Service created
kubectl -n petclinic get services
  • Validate that you can run the petclinic app using the IP given by the petclinic Service above
kubectl -n petclinic get pods 
  • delete the petclinic
kubectl -n petclinic delete -f spring-petclinic.yaml

Deploy the instrumented version of the pet clinic

  • deploy the splunk otel collector
helm repo add splunk-otel-collector-chart https://signalfx.github.io/splunk-otel-collector-chart && helm repo update
helm install splunk-otel-collector \
--set="splunkObservability.realm=$REALM" \
--set="splunkObservability.accessToken=$ACCESS_TOKEN" \
--set="clusterName=$(hostname)-k3s-cluster" \
--set="splunkObservability.logsEnabled=true" \
splunk-otel-collector-chart/splunk-otel-collector \
--namespace splunk \
--create-namespace
  • deploy the instrumented version of the pet clinic
kubectl apply -f instru-spring-petclinic.yaml

Deploy the auto-config instrumented version of the pet clinic

  • deploy the splunk OpenTelemetry Collector Operator for Kubernetes

Uninstall the splunk opentelemetry collector.
follow the instruction to install the operator.

  • deploy the auto-instrumented version of the pet clinic
kubectl apply -f auto-instru-spring-petclinic.yaml

ultimately we are using the default image with additionnal annotations

  template:
    metadata:
      annotations:
        otel.splunk.com/inject-java: "true"

k8s-pet-clinic-otel's People

Contributors

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