feat(config): add environment variable to values files and update OpenTelemetry attributes

This commit is contained in:
Nicolas 2025-09-26 12:37:46 +08:00
parent 578bce5719
commit 6df7fba1e6
3 changed files with 4 additions and 1 deletions

View File

@ -82,7 +82,8 @@ spec:
- context: log
statements:
- set(resource.attributes["application"], log.attributes["context"]["app"])
- set(resource.attributes["environment"], log.attributes["context"]["env"])
- set(resource.attributes["service_name"], "devsvc")
- set(resource.attributes["environment"], "{{ .Values.global.environment | default .Release.Namespace }}")
- set(resource.attributes["kubernetes_node_name"], resource.attributes["k8s.node.name"])
- set(resource.attributes["kubernetes_pod_name"], resource.attributes["k8s.pod.name"])
- set(resource.attributes["kubernetes_pod_ip"], resource.attributes["k8s.pod.ip"])

View File

@ -1,6 +1,7 @@
global:
registry: docker.io
repository: freeleaps
environment: alpha
nodeSelector: {}
dashboard:
enabled: false

View File

@ -1,6 +1,7 @@
global:
registry: docker.io
repository: freeleaps
environment: prod
nodeSelector: {}
dashboard:
enabled: true