Skip to content

Commit

Permalink
add otel intro
Browse files Browse the repository at this point in the history
  • Loading branch information
cboudereau committed Feb 9, 2024
1 parent 66a33ee commit 36ddae4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
4 changes: 4 additions & 0 deletions 2024-01-31_OpenTelemetry_Looks_Good_To_Me/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ LGTM are a GrafanaLabs products initials and a joke for Loki, Grafana, Tempo and

<iframe src="https://www.youtube.com/embed/1kgAzLYeKGY?si=dsrZowTsOmSJ1tsj" title="OpenTelemetry LGTM demo" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

## Introduction
Reference: https://o11y-weekly.github.io/2023-11-30_What_is_OpenTelemetry/
A [previous post](https://o11y-weekly.github.io/2023-11-30_What_is_OpenTelemetry/) is available to explain what is OpenTelemetry while this post is focusing on how to use it and what is the outcome ?

## Naming conventions / Semantic-conventions
References:
- https://opentelemetry.io/docs/concepts/semantic-conventions/
Expand Down
5 changes: 3 additions & 2 deletions 2024-01-31_OpenTelemetry_Looks_Good_To_Me/demo/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ services:
- SERVICE_NAME=service
- SERVICE_NAMESPACE=demo
- DEPLOYMENT_ENVIRONMENT=dev
- FAILURE_RATIO=0.0001
- FAILURE_RATIO=0.1 # demo parameter
- LATENCY_RATIO=1 # demo parameter
- MIN_LATENCY=0 #ms
- MAX_LATENCY=100 #ms
- OTEL_TRACES_SAMPLER=parentbased_always_on
Expand Down Expand Up @@ -96,7 +97,7 @@ services:
- SERVICE_NAMESPACE=demo
- DEPLOYMENT_ENVIRONMENT=dev
- OTEL_TRACES_SAMPLER=parentbased_traceidratio
- OTEL_TRACES_SAMPLER_ARG=1
- OTEL_TRACES_SAMPLER_ARG=0.1 # demo parameter
- OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcontribcol-gateway:4318
- OTEL_METRICS_EXPORTER=none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ exporters:
endpoint: otelcontribcol-traces-loadbalancer:4317
tls:
insecure: true
otlp/traces:
otlp/traces-collector:
endpoint: otelcontribcol-traces-collector:4317
tls:
insecure: true
Expand All @@ -18,8 +18,9 @@ service:
traces/gateway:
receivers: [otlp/gateway]
processors: [batch/traces-loadbalancer]
# demo parameter
# choose one of :
# - otlp/traces-loadbalancer: forward to a loadbalancer collector over multiple tail sampling collectors
# - otlp/traces : forward to tail sampling collector
# - otlp/traces-collector : forward to tail sampling collector
# - otlphttp/tempo: send traces to tempo directly without tail-sampling
exporters: [otlp/traces-loadbalancer, debug]
10 changes: 10 additions & 0 deletions 2024-01-31_OpenTelemetry_Looks_Good_To_Me/slides/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
![Looks Good To Me](./lgtm.png)
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### OpenTelemetry
![2023-11-30 #7 What is OpenTelemetry ?](o11y-weekly-otel-post-qrcode.gif)
- OTLP protocol: gRPC/HTTP protobuf services
- Semantic Conventions: attributes and resources
- Instrumentations
- Collectors / Exporters: SDK and agent
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## Start up the demo !
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 36ddae4

Please sign in to comment.