From da268f1671a7ab212df976096393e4b5bee57f7a Mon Sep 17 00:00:00 2001 From: asepharyana Date: Wed, 22 Jul 2026 18:10:38 +0700 Subject: [PATCH] feat: enhance observability with dynamic links, Docker API integration, and health checks --- infra/compose/observability.yml | 7 ++ infra/compose/traefik.yml | 8 +- infra/dashboard/index.html | 128 +++++++++++++++++++------ infra/dashboard/nginx.conf | 134 ++++++++++++++++----------- infra/docker/dashboard.Dockerfile | 3 +- infra/nats/nats.conf | 12 --- infra/otel/otel-collector-config.yml | 5 + 7 files changed, 194 insertions(+), 103 deletions(-) diff --git a/infra/compose/observability.yml b/infra/compose/observability.yml index 825dd9d..d8dbb9a 100644 --- a/infra/compose/observability.yml +++ b/infra/compose/observability.yml @@ -49,6 +49,13 @@ services: - dashboard ports: - '8080:8080' + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + depends_on: + jaeger: + condition: service_started + otel-collector: + condition: service_started networks: app-shared-net: diff --git a/infra/compose/traefik.yml b/infra/compose/traefik.yml index 1ceeed6..bb1aff3 100644 --- a/infra/compose/traefik.yml +++ b/infra/compose/traefik.yml @@ -50,10 +50,10 @@ services: - '--experimental.plugins.blockpath.moduleName=github.com/traefik/plugin-blockpath' - '--experimental.plugins.blockpath.version=v0.2.1' - '--ping=true' - - '--tracing.openTelemetry=true' - - '--tracing.openTelemetry.address=otel-collector:4318' - - '--tracing.openTelemetry.insecure=true' - - '--tracing.openTelemetry.grpc=false' + - '--tracing.otel=true' + - '--tracing.otel.address=otel-collector:4318' + - '--tracing.otel.insecure=true' + - '--tracing.otel.grpc=false' - '--tracing.serviceName=traefik' healthcheck: test: ['CMD', 'wget', '--spider', 'http://localhost:8080/ping'] diff --git a/infra/dashboard/index.html b/infra/dashboard/index.html index 0a2a0dd..7dd3758 100644 --- a/infra/dashboard/index.html +++ b/infra/dashboard/index.html @@ -166,14 +166,11 @@

Quick Links

- +
@@ -184,6 +181,7 @@