job "otel-collector" { region = "global" datacenters = ["dc1"] namespace = "default" type = "service" constraint { attribute = "${attr.kernel.name}" value = "linux" } group "otel-collector" { count = 1 network { mode = "bridge" port "healthcheck" { to = 13133 } port "jaeger-grpc" { to = 14250 } port "jaeger-thrift-http" { to = 14268 } port "metrics" { to = 8888 } port "otlp" { to = 4317 } port "otlphttp" { to = 4318 } port "zipkin" { to = 9411 } port "zpages" { to = 55679 } } task "otel-collector" { driver = "docker" config { image = "otel/opentelemetry-collector-contrib:0.50.0" force_pull = true entrypoint = [ "/otelcol-contrib", "--config=local/otel/config.yaml", ] ports = [ "otlphttp", "zipkin", "zpages", "healthcheck", "jaeger-grpc", "jaeger-thrift-http", "metrics", "otlp" ] } env { HOST_DEV = "/hostfs/dev" HOST_ETC = "/hostfs/etc" HOST_PROC = "/hostfs/proc" HOST_RUN = "/hostfs/run" HOST_SYS = "/hostfs/sys" HOST_VAR = "/hostfs/var" } template { data = <