Skip to content

Commit

Permalink
add otel collector grpc endpoint environment variable for client prox…
Browse files Browse the repository at this point in the history
…y in order to send metrics regarding number of connections (#288)
  • Loading branch information
jakubno authored Feb 11, 2025
2 parents 0cb092e + 82f93ac commit fcd9ca4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/nomad/client-proxy.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ job "client-proxy" {
cpu = 1000
}

env {
OTEL_COLLECTOR_GRPC_ENDPOINT = "${otel_collector_grpc_endpoint}"
}

config {
network_mode = "host"
image = "${image_name}"
Expand Down
2 changes: 2 additions & 0 deletions packages/nomad/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ resource "nomad_job" "client_proxy" {
environment = var.environment

image_name = var.client_proxy_docker_image_digest

otel_collector_grpc_endpoint = "localhost:4317"
})
}

Expand Down

0 comments on commit fcd9ca4

Please sign in to comment.