Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/deploy-aztec-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ on:
description: Whether to use an external ingress for the rpc
required: true
type: boolean
otel_collector_url:
description: The OpenTelemetry collector that will receive metrics from this deployment. Optional
required: false
type: string
secrets:
GCP_SA_KEY:
description: The GCP service account key
Expand Down Expand Up @@ -207,6 +211,10 @@ on:
description: Whether to use an external ingress for the rpc
required: true
type: boolean
otel_collector_url:
description: The OpenTelemetry collector that will receive metrics from this deployment. Optional
required: false
type: string

jobs:
deploy_aztec_infra:
Expand Down Expand Up @@ -237,6 +245,7 @@ jobs:
TF_VAR_PROVER_RESOURCE_PROFILE: ${{ inputs.prover_resource_profile }}
TF_VAR_RPC_RESOURCE_PROFILE: ${{ inputs.rpc_resource_profile }}
TF_VAR_RPC_EXTERNAL_INGRESS: ${{ inputs.rpc_external_ingress }}
TF_VAR_OTEL_COLLECTOR_URL: ${{ inputs.otel_collector_url }}

steps:
- name: Debug inputs
Expand Down
1 change: 1 addition & 0 deletions spartan/terraform/deploy-aztec-infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ locals {
"global.customAztecNetwork.slashFactoryContractAddress" = var.SLASH_FACTORY_CONTRACT_ADDRESS
"global.customAztecNetwork.feeAssetHandlerContractAddress" = var.FEE_ASSET_HANDLER_CONTRACT_ADDRESS
"global.customAztecNetwork.l1ChainId" = var.L1_CHAIN_ID
"global.otelCollectorEndpoint" = var.OTEL_COLLECTOR_URL
}

common_list_settings = {
Expand Down
6 changes: 3 additions & 3 deletions spartan/terraform/deploy-aztec-infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ variable "AZTEC_DOCKER_IMAGE" {
default = "aztecprotocol/aztec:staging"
}

variable "METRICS_NAMESPACE" {
description = "Namespace to deploy the metrics to"
variable "OTEL_COLLECTOR_URL" {
description = "The URL of an OpenTelemtry collector to send metrics to"
type = string
default = "metrics"
nullable = true
}

variable "VALIDATOR_VALUES" {
Expand Down
5 changes: 5 additions & 0 deletions spartan/terraform/deploy-metrics/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ output "otel_collector_ip" {
value = google_compute_address.otel_collector_ip.address
}

output "otel_collector_base_url" {
description = "OTEL Collector IP"
value = "http://${google_compute_address.otel_collector_ip.address}:4318"
}

Loading