Skip to content

isItObservable/ambientmesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Is it Observable

Is It observable Logo

Episode : Ambient Mesh

Is It observable Logo

This repository contains the files utilized during the tutorial presented in the dedicated IsItObservable episode related to the Ambient Mesh.

This repository showcase the usage of Ambient Mesh with :

  • The OpenTelemetry demo
  • Dynatrace

We will send all Telemetry data produced by otel-demo to Dynatrace.

Prerequisite

The following tools need to be install on your machine :

  • jq
  • kubectl
  • git
  • gcloud ( if you are using GKE)
  • Helm

1.Create a Google Cloud Platform Project

PROJECT_ID="<your-project-id>"
gcloud services enable container.googleapis.com --project ${PROJECT_ID}
gcloud services enable monitoring.googleapis.com \
cloudtrace.googleapis.com \
clouddebugger.googleapis.com \
cloudprofiler.googleapis.com \
--project ${PROJECT_ID}

2.Create a GKE cluster

ZONE=europe-west3-a
NAME=isitobservable-ambientmesh
gcloud container clusters create ${NAME} --zone=${ZONE} --machine-type=e2-standard-4 --num-nodes=2

Getting started

Dynatrace Tenant

1. Dynatrace Tenant - start a trial

If you don't have any Dynatrace tenant , then i suggest to create a trial using the following link : Dynatrace Trial Once you have your Tenant save the Dynatrace tenant url in the variable DT_TENANT_URL (for example : https://dedededfrf.live.dynatrace.com)

DT_TENANT_URL=<YOUR TENANT Host>

2. Create the Dynatrace API Tokens

Create a Dynatrace token with the following scope ( left menu Acces Token):

  • ingest metrics
  • ingest OpenTelemetry traces
  • ingest logs

data token

Save the value of the token . We will use it later to store in a k8S secret
DATA_INGEST_TOKEN=<YOUR TOKEN VALUE>

Istio

  1. Download Istioctl
curl -L https://istio.io/downloadIstio | sh -

This command download the latest version of istio ( in our case istio 1.18.2) compatible with our operating system. 2. Add istioctl to you PATH

cd istio-1.18.2

this directory contains samples with addons . We will refer to it later.

export PATH=$PWD/bin:$PATH

Clone the Github Repository

https://github.com/isItObservable/ambientmesh
cd ambientmesh

Deploy most of the components

The application will deploy the entire environment:

chmod 777 deployment.sh
./deployment.sh   --dthost "${DT_TENANT_URL}" --dttoken "${DATA_INGEST_TOKEN}" 

Tutorial

1. Let's add the otel demo in the Service Mesh

kubectl label namespace default istio.io/dataplane-mode=ambient

2. Let's add a Waypoint Proxy in the default namespace

kubectl apply -f istio/waypoint.yaml

3. Let's have a look at the Isio Settings

cat istio/istio-operator.yaml

4. Let's have a look at the openTelemetry collector pipeline

cat openTelemetry-demo/openTelemetry-manifest_debut.yaml

About

Repository for the tutorial related to Ambient Mesh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages