Skip to content

Commit

Permalink
Add LOG_GCLOUD env var to templates
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Jan 3, 2025
1 parent 3c1ada1 commit ad979db
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spartan/aztec-network/templates/boot-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ spec:
value: "{{ .Values.bootNode.logLevel }}"
- name: LOG_JSON
value: "1"
- name: LOG_GCLOUD
value: "{{ .Values.telemetry.gcloud }}"
- name: P2P_ENABLED
value: "{{ .Values.bootNode.p2p.enabled }}"
- name: COINBASE
Expand Down
2 changes: 2 additions & 0 deletions spartan/aztec-network/templates/faucet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ spec:
value: "{{ .Values.faucet.l1Assets }}"
- name: LOG_JSON
value: "1"
- name: LOG_GCLOUD
value: "{{ .Values.telemetry.gcloud }}"
- name: LOG_LEVEL
value: "{{ .Values.faucet.logLevel }}"
ports:
Expand Down
2 changes: 2 additions & 0 deletions spartan/aztec-network/templates/prover-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ spec:
value: "{{ .Values.proverAgent.logLevel }}"
- name: LOG_JSON
value: "1"
- name: LOG_GCLOUD
value: "{{ .Values.telemetry.gcloud }}"
- name: PROVER_REAL_PROOFS
value: "{{ .Values.aztec.realProofs }}"
- name: PROVER_AGENT_COUNT
Expand Down
2 changes: 2 additions & 0 deletions spartan/aztec-network/templates/prover-broker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ spec:
value: "{{ .Values.proverBroker.logLevel }}"
- name: LOG_JSON
value: "1"
- name: LOG_GCLOUD
value: "{{ .Values.telemetry.gcloud }}"
- name: PROVER_BROKER_POLL_INTERVAL_MS
value: "{{ .Values.proverBroker.pollIntervalMs }}"
- name: PROVER_BROKER_JOB_TIMEOUT_MS
Expand Down
2 changes: 2 additions & 0 deletions spartan/aztec-network/templates/prover-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ spec:
value: "{{ .Values.proverNode.logLevel }}"
- name: LOG_JSON
value: "1"
- name: LOG_GCLOUD
value: "{{ .Values.telemetry.gcloud }}"
- name: PROVER_REAL_PROOFS
value: "{{ .Values.aztec.realProofs }}"
- name: PROVER_AGENT_COUNT
Expand Down
2 changes: 2 additions & 0 deletions spartan/aztec-network/templates/pxe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ spec:
value: "{{ .Values.pxe.service.nodePort }}"
- name: LOG_JSON
value: "1"
- name: LOG_GCLOUD
value: "{{ .Values.telemetry.gcloud }}"
- name: LOG_LEVEL
value: "{{ .Values.pxe.logLevel }}"
- name: PXE_PROVER_ENABLED
Expand Down
2 changes: 2 additions & 0 deletions spartan/aztec-network/templates/transaction-bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ spec:
value: "{{ .Values.bot.service.nodePort }}"
- name: LOG_JSON
value: "1"
- name: LOG_GCLOUD
value: "{{ .Values.telemetry.gcloud }}"
- name: LOG_LEVEL
value: "{{ .Values.bot.logLevel }}"
- name: BOT_PRIVATE_KEY
Expand Down
2 changes: 2 additions & 0 deletions spartan/aztec-network/templates/validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ spec:
value: "{{ .Values.validator.logLevel }}"
- name: LOG_JSON
value: "1"
- name: LOG_GCLOUD
value: "{{ .Values.telemetry.gcloud }}"
- name: P2P_ENABLED
value: "{{ .Values.validator.p2p.enabled }}"
- name: VALIDATOR_DISABLED
Expand Down
1 change: 1 addition & 0 deletions spartan/aztec-network/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ network:

telemetry:
enabled: false
gcloud:
otelCollectorEndpoint:

images:
Expand Down
5 changes: 5 additions & 0 deletions spartan/terraform/deploy-release/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ resource "helm_release" "aztec-gke-cluster" {
value = var.L1_DEPLOYMENT_SALT
}

set {
name = "telemetry.gcloud"
value = "true"
}

# Setting timeout and wait conditions
timeout = 1200 # 20 minutes in seconds
wait = true
Expand Down

0 comments on commit ad979db

Please sign in to comment.