Skip to content

Commit

Permalink
Merge pull request #11 from SCT-Engineering/bugfix-portnumber
Browse files Browse the repository at this point in the history
Bugfix portnumber
  • Loading branch information
mcgin314 committed Mar 6, 2025
2 parents df19ecf + be3dbe1 commit 2a353f5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ locals {
oidc_arn = var.oidc_provider_arn
tags = var.tags
account_id = var.account_id

tempo_internal_hostname = format("tempo.%v.svc.cluster.local", var.namespace)
tempo_internal_port_number = 3100
tempo_internal_url = format("http://%v:%v/", local.tempo_internal_hostname, local.tempo_internal_port_number)

tempo_otlp_port_number = 4317
tempo_otlp_url = format("http://%v:%v", local.tempo_internal_hostname, local.tempo_otlp_port_number)
}

################################################################################
Expand Down
18 changes: 18 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@
# Module information
################################################################################

output "tempo_internal_endpoint" {
description = "internal endpoint for tempo"
value = {
hostname = local.tempo_internal_hostname
port_number = local.tempo_internal_port_number
url = local.tempo_internal_url
}
}

output "tempo_otlp_endpoint" {
description = "internal otlp endpoint for tempo"
value = {
hostname = local.tempo_internal_hostname
port_number = local.tempo_otlp_port_number
url = local.tempo_otlp_url
}
}

output "module_name" {
description = "The name of this module."
value = local.module_name
Expand Down

0 comments on commit 2a353f5

Please sign in to comment.