File tree Expand file tree Collapse file tree 4 files changed +18
-3
lines changed
Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 100100 description : Whether to use an external ingress for the rpc
101101 required : true
102102 type : boolean
103+ otel_collector_url :
104+ description : The OpenTelemetry collector that will receive metrics from this deployment. Optional
105+ required : false
106+ type : string
103107 secrets :
104108 GCP_SA_KEY :
105109 description : The GCP service account key
207211 description : Whether to use an external ingress for the rpc
208212 required : true
209213 type : boolean
214+ otel_collector_url :
215+ description : The OpenTelemetry collector that will receive metrics from this deployment. Optional
216+ required : false
217+ type : string
210218
211219jobs :
212220 deploy_aztec_infra :
@@ -237,6 +245,7 @@ jobs:
237245 TF_VAR_PROVER_RESOURCE_PROFILE : ${{ inputs.prover_resource_profile }}
238246 TF_VAR_RPC_RESOURCE_PROFILE : ${{ inputs.rpc_resource_profile }}
239247 TF_VAR_RPC_EXTERNAL_INGRESS : ${{ inputs.rpc_external_ingress }}
248+ TF_VAR_OTEL_COLLECTOR_URL : ${{ inputs.otel_collector_url }}
240249
241250 steps :
242251 - name : Debug inputs
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ locals {
5858 " global.customAztecNetwork.slashFactoryContractAddress" = var.SLASH_FACTORY_CONTRACT_ADDRESS
5959 " global.customAztecNetwork.feeAssetHandlerContractAddress" = var.FEE_ASSET_HANDLER_CONTRACT_ADDRESS
6060 " global.customAztecNetwork.l1ChainId" = var.L1_CHAIN_ID
61+ " global.otelCollectorEndpoint" = var.OTEL_COLLECTOR_URL
6162 }
6263
6364 common_list_settings = {
Original file line number Diff line number Diff line change @@ -79,10 +79,10 @@ variable "AZTEC_DOCKER_IMAGE" {
7979 default = " aztecprotocol/aztec:staging"
8080}
8181
82- variable "METRICS_NAMESPACE " {
83- description = " Namespace to deploy the metrics to"
82+ variable "OTEL_COLLECTOR_URL " {
83+ description = " The URL of an OpenTelemtry collector to send metrics to"
8484 type = string
85- default = " metrics "
85+ nullable = true
8686}
8787
8888variable "VALIDATOR_VALUES" {
Original file line number Diff line number Diff line change @@ -9,3 +9,8 @@ output "otel_collector_ip" {
99 value = google_compute_address. otel_collector_ip . address
1010}
1111
12+ output "otel_collector_base_url" {
13+ description = " OTEL Collector IP"
14+ value = " http://${ google_compute_address . otel_collector_ip . address } :4318"
15+ }
16+
You can’t perform that action at this time.
0 commit comments