Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[forge][telemetry] Enable node telemetry service in forge #4490

Merged
merged 1 commit into from
Sep 29, 2022
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
6 changes: 5 additions & 1 deletion terraform/helm/aptos-node/templates/fullnode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,21 @@ spec:
value: {{ .rust_log }}
- name: RUST_LOG_REMOTE
value: {{ .rust_log_remote }}
{{- end }}
{{- if $.Values.validator.remoteLogAddress }}
- name: STRUCT_LOG_TCP_ADDR
value: {{ $.Values.validator.remoteLogAddress }}
{{- end }}
{{- if .force_enable_telemetry }}
- name: APTOS_FORCE_ENABLE_TELEMETRY
value: "true"
{{- end }}
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: RUST_BACKTRACE
value: "0"
{{- end }}
volumeMounts:
- name: aptos-config
mountPath: /opt/aptos/etc
Expand Down
6 changes: 5 additions & 1 deletion terraform/helm/aptos-node/templates/validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,17 @@ spec:
- name: STRUCT_LOG_TCP_ADDR
value: {{ .remoteLogAddress }}
{{- end }}
{{- end }}
{{- if .force_enable_telemetry }}
- name: APTOS_FORCE_ENABLE_TELEMETRY
value: "true"
{{- end }}
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: RUST_BACKTRACE
value: "0"
{{- end }}
volumeMounts:
- name: aptos-config
mountPath: /opt/aptos/etc
Expand Down
4 changes: 4 additions & 0 deletions terraform/helm/aptos-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ validator:
rust_log_remote: debug,hyper=off
# -- Address for remote logging. See `logger` helm chart
remoteLogAddress:
# -- Flag to force enable telemetry service (useful for forge tests)
force_enable_telemetry: false
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down Expand Up @@ -125,6 +127,8 @@ fullnode:
rust_log: info
# -- Remote log level for the fullnode
rust_log_remote: debug,hyper=off
# -- Flag to force enable telemetry service (useful for forge tests)
force_enable_telemetry: false
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
validator:
enableNetworkPolicy: false
rust_log: debug,hyper=off
# force enable the telemetry service to try to send telemetry
force_enable_telemetry: true

fullnode:
# at most one VFN per validator, depending on numFullnodeGroups
groups:
- name: fullnode
replicas: 1
rust_log: debug,hyper=off
# force enable the telemetry service to try to send telemetry
force_enable_telemetry: true

# Make all services internal NodePort and open all ports
# NodePort is required for ChaosMesh to function correctly: https://github.com/chaos-mesh/chaos-mesh/issues/3278#issuecomment-1134248492
Expand Down