Skip to content

Commit

Permalink
Fix port number on service and add to outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgin314 committed Mar 6, 2025
2 parents df19ecf + d17fd8d commit 7b19869
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ 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)
}

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

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

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

0 comments on commit 7b19869

Please sign in to comment.