Skip to content

Connect traefiks to opentelemetry - Auto-Instrument Treafik #1041

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f0d8cf0
wip
mrnicegyu11 Sep 19, 2024
e906b41
Merge remote-tracking branch 'upstream/main' into main
mrnicegyu11 Oct 23, 2024
14c751d
Merge remote-tracking branch 'upstream/main' into main
mrnicegyu11 Oct 23, 2024
293f63c
Add csi-s3 and have portainer use it
mrnicegyu11 Oct 24, 2024
f7f72ec
Change request @hrytsuk 1GB max portainer volume size
mrnicegyu11 Oct 25, 2024
94cfb76
t push
mrnicegyu11 Oct 28, 2024
509c717
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 Oct 29, 2024
1a65ecf
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 Nov 13, 2024
77ee45e
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 Nov 25, 2024
c9c70d6
Arch Linux Certificates Customization
mrnicegyu11 Dec 3, 2024
7b8be53
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 Dec 5, 2024
bcd61cd
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 Dec 12, 2024
58e1030
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 Dec 13, 2024
ed8d479
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 Jan 10, 2025
dda6e01
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 Feb 4, 2025
f6f4f36
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 Feb 25, 2025
5dca5c3
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 Mar 13, 2025
4a653ef
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 Mar 20, 2025
3a21f0f
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 Mar 28, 2025
48fbbca
Fix pgsql exporter failure
mrnicegyu11 Apr 24, 2025
08c57db
Merge remote-tracking branch 'upstream/main'
mrnicegyu11 May 6, 2025
5ecbfec
[Kubernetes] Introduce on-prem persistent Storage (Longhorn) :tada: …
YuryHrytsuk May 6, 2025
3ea41b5
Experimental: Try to add tracing to simcore-traefik on master
mrnicegyu11 May 9, 2025
191a1ad
Connect traefik to open telemetry
mrnicegyu11 May 9, 2025
a05e3e7
revert accidental commit
mrnicegyu11 May 9, 2025
1150be5
Merge remote-tracking branch 'upstream/main' into 2025/add/traefikOpe…
mrnicegyu11 May 9, 2025
c5b2ede
Merge remote-tracking branch 'upstream/main' into 2025/add/traefikOpe…
mrnicegyu11 May 20, 2025
206743d
Merge branch 'main' into 2025/add/traefikOpenTelemetry
mrnicegyu11 May 21, 2025
810a36d
Merge remote-tracking branch 'upstream/main' into 2025/add/traefikOpe…
mrnicegyu11 May 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions services/simcore/docker-compose.deploy.aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ services:
- "--providers.swarm.refreshSeconds=1"
- "--providers.swarm.exposedByDefault=false"
- "--providers.swarm.constraints=Label(`io.simcore.zone`, `${TRAEFIK_SIMCORE_ZONE}`)"
- "--tracing=true"
- "--tracing.addinternals"
- "--tracing.otlp=true"
- "--tracing.otlp.http=true"
- "--tracing.serviceName=simcore-traefik"
- "--tracing.otlp.http.endpoint=http://otel-collector:4318/v1/traces"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we use env variables to avoid hardcoding host and port?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configuration refactoring for this in mrnicegyu11#1, please review :--) thx

deploy:
resources:
limits:
Expand Down
6 changes: 2 additions & 4 deletions services/simcore/docker-compose.deploy.dalco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ services:
- "--providers.swarm.refreshSeconds=1"
- "--providers.swarm.exposedByDefault=false"
- "--providers.swarm.constraints=Label(`io.simcore.zone`, `${TRAEFIK_SIMCORE_ZONE}`)"
- "--tracing=true"
- "--tracing.addinternals"
- "--tracing.otlp=true"
- "--tracing.otlp.http=true"
- "--tracing.serviceName=simcore-traefik"
- "--tracing.otlp.http.endpoint=http://otel-collector:4318/v1/traces"
deploy:
resources:
limits:
Expand Down
6 changes: 2 additions & 4 deletions services/simcore/docker-compose.deploy.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ services:
- "--providers.swarm.refreshSeconds=1"
- "--providers.swarm.exposedByDefault=false"
- "--providers.swarm.constraints=Label(`io.simcore.zone`, `${TRAEFIK_SIMCORE_ZONE}`)"
- "--tracing=true"
- "--tracing.addinternals"
- "--tracing.otlp=true"
- "--tracing.otlp.http=true"
- "--tracing.serviceName=simcore-traefik"
- "--tracing.otlp.http.endpoint=http://otel-collector:4318/v1/traces"
deploy:
labels:
# oSparc postgres
Expand Down
7 changes: 2 additions & 5 deletions services/simcore/docker-compose.deploy.master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,8 @@ services:
- "--providers.swarm.refreshSeconds=1"
- "--providers.swarm.exposedByDefault=false"
- "--providers.swarm.constraints=Label(`io.simcore.zone`, `${TRAEFIK_SIMCORE_ZONE}`)"
#- "--tracing=true"
#- "--tracing.addinternals"
#- "--tracing.otlp=true"
#- "--tracing.otlp.http=true"
- "--tracing.otlp.http.endpoint=https://otel-collector:4318/v1/traces"
- "--tracing.serviceName=simcore-traefik"
- "--tracing.otlp.http.endpoint=http://otel-collector:4318/v1/traces"
deploy:
resources:
limits:
Expand Down
6 changes: 2 additions & 4 deletions services/simcore/docker-compose.deploy.public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ services:
- "--providers.swarm.refreshSeconds=1"
- "--providers.swarm.exposedByDefault=false"
- "--providers.swarm.constraints=Label(`io.simcore.zone`, `${TRAEFIK_SIMCORE_ZONE}`)"
- "--tracing"
- "--tracing.addinternals"
- "--tracing.otlp=true"
- "--tracing.otlp.http=true"
- "--tracing.serviceName=simcore-traefik"
- "--tracing.otlp.http.endpoint=http://otel-collector:4318/v1/traces"
deploy:
labels:
- prometheus-job=traefik_simcore_production
Expand Down
6 changes: 2 additions & 4 deletions services/traefik/docker-compose.dalco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ services:
- "--providers.swarm.endpoint=unix:///var/run/docker.sock"
- "--providers.swarm.exposedByDefault=false"
- "--core.defaultRuleSyntax=v2"
- "--tracing=true"
- "--tracing.addinternals"
- "--tracing.otlp=true"
- "--tracing.otlp.http=true"
- "--tracing.serviceName=ops-traefik"
- "--tracing.otlp.http.endpoint=http://otel-collector:4318/v1/traces"
- "--providers.swarm.constraints=!LabelRegex(`io.simcore.zone`, `.+`)"
- "--entryPoints.https.forwardedHeaders.insecure"
- "--providers.file.directory=/etc/traefik/"
Expand Down
6 changes: 2 additions & 4 deletions services/traefik/docker-compose.letsencrypt.http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ services:
- "--providers.swarm.exposedByDefault=false"
- "--providers.swarm.constraints=!LabelRegex(`io.simcore.zone`, `.+`)"
- "--core.defaultRuleSyntax=v2"
- "--tracing=true"
- "--tracing.addinternals"
- "--tracing.otlp=true"
- "--tracing.otlp.http=true"
- "--tracing.serviceName=ops-traefik"
- "--tracing.otlp.http.endpoint=http://otel-collector:4318/v1/traces"
- "--certificatesresolvers.lehttpchallenge.acme.httpchallenge=true"
- "--certificatesresolvers.lehttpchallenge.acme.httpchallenge.entrypoint=http"
- "--certificatesresolvers.lehttpchallenge.acme.email=${OSPARC_DEVOPS_MAIL_ADRESS}"
Expand Down
6 changes: 2 additions & 4 deletions services/traefik/docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ services:
- "--providers.swarm.exposedByDefault=false"
- "--providers.swarm.constraints=!LabelRegex(`io.simcore.zone`, `${TRAEFIK_SIMCORE_ZONE}`)"
- "--core.defaultRuleSyntax=v2"
- "--tracing=true"
- "--tracing.addinternals"
- "--tracing.otlp=true"
- "--tracing.otlp.http=true"
- "--tracing.serviceName=ops-traefik"
- "--tracing.otlp.http.endpoint=http://otel-collector:4318/v1/traces"
- "--providers.file.directory=/etc/traefik/"
- "--providers.file.watch=true"
networks:
Expand Down
4 changes: 0 additions & 4 deletions services/traefik/docker-compose.master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ services:
- "--providers.swarm.endpoint=unix:///var/run/docker.sock"
- "--providers.swarm.exposedByDefault=false"
- "--core.defaultRuleSyntax=v2"
- "--tracing=true"
- "--tracing.addinternals"
- "--tracing.otlp=true"
- "--tracing.otlp.http=true"
- "--providers.swarm.constraints=!LabelRegex(`io.simcore.zone`, `.+`)"
- "--entryPoints.https.forwardedHeaders.insecure"
- "--providers.file.directory=/etc/traefik/"
Expand Down
6 changes: 2 additions & 4 deletions services/traefik/docker-compose.public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ services:
- "--providers.swarm.endpoint=unix:///var/run/docker.sock"
- "--providers.swarm.exposedByDefault=false"
- "--core.defaultRuleSyntax=v2"
- "--tracing=true"
- "--tracing.addinternals"
- "--tracing.otlp=true"
- "--tracing.otlp.http=true"
- "--tracing.serviceName=ops-traefik"
- "--tracing.otlp.http.endpoint=http://otel-collector:4318/v1/traces"
- "--providers.swarm.constraints=!LabelRegex(`io.simcore.zone`, `.+`)"
- "--entryPoints.https.forwardedHeaders.insecure"
- "--providers.file.directory=/etc/traefik/"
Expand Down