From 0de53a50adbe72b963ea4bb9fbfdb70603b27bef Mon Sep 17 00:00:00 2001 From: Zhenya Tikhonov Date: Mon, 27 Oct 2025 16:39:47 +0400 Subject: [PATCH 1/5] build(app-proxy): add telemetry configs --- .../_main-container.yaml | 8 +++ charts/gitops-runtime/values.yaml | 57 ++++++++++++++++++- 2 files changed, 64 insertions(+), 1 deletion(-) diff --git a/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml b/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml index 4314779f..efd84f4b 100644 --- a/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml +++ b/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml @@ -1,4 +1,9 @@ {{- define "cap-app-proxy.environment-variables.defaults" -}} +{{- $accountId := include "global.codefresh.accountId" . -}} +{{- $chartVersion := coalesce .Values.version .Chart.Version -}} +{{- $runtimeVersion := .Chart.AppVersion -}} +{{- $runtimeName := include "global.runtime.name" . -}} +{{- $appProxyVersion := coalesce .Values.app-proxy.image.tag "latest" -}} ARGO_CD_URL: valueFrom: configMapKeyRef: @@ -24,6 +29,8 @@ CF_HOST: name: codefresh-cm key: base-url optional: true +CF_SERVICE_NAME: {{ printf "cf-gitops-app-proxy" }} +CF_SERVICE_VERSION: {{ $appProxyVersion }} CLUSTER: https://kubernetes.default.svc CLUSTER_CHUNK_SIZE: valueFrom: @@ -223,6 +230,7 @@ CACHE_PASSWORD: key: auth {{ include "codefresh-gitops-runtime.get-proxy-env-vars" . }} {{- end -}} +OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.name=%s,service.version=%s,service.namespace=%s,cf.account.id=%s,cf.gitops.runtime.name=%s,cf.gitops.runtime.version=%s,cf.gitops.runtime.chart.version=%s" "cf-gitops-app-proxy" $appProxyVersion "cf-gitops-runtime" $accountId "$runtimeName" "$runtimeVersion" "$chartVersion" }} {{/* Read defaults from the template above and merge with the values provided in values file diff --git a/charts/gitops-runtime/values.yaml b/charts/gitops-runtime/values.yaml index b81e3f10..aa5374b2 100644 --- a/charts/gitops-runtime/values.yaml +++ b/charts/gitops-runtime/values.yaml @@ -540,7 +540,62 @@ app-proxy: clusterChunkSize: 50 # -- Cors settings for app-proxy. This is the list of allowed domains for platform (comma separated). cors: "https://g.codefresh.io" - env: {} + env: + # -- Telemetry configuration + # -- Level of logging for app-proxy + CF_TELEMETRY_LOGS_LEVEL: 'info' + # -- Level for logging HTTP requests + CF_TELEMETRY_LOGS_LEVEL_HTTP: 'debug' + # -- Enable OpenTelemetry signals (logs, metrics, traces) + CF_TELEMETRY_OTEL_ENABLE: 'false' + # -- Enable OTel HTTP instrumentation. + # Make sure to sanitize `url.full` and `url.query` span attributes on collector before enabling this flag, as it may contain sensitive information. + CF_TELEMETRY_OTEL_ALLOW_HTTP_INSTRUMENTATION: 'false' + # -- Enable Prometheus server + CF_TELEMETRY_PROMETHEUS_ENABLE: 'false' + # -- Enable collecting process metrics + CF_TELEMETRY_PROMETHEUS_ENABLE_PROCESS_METRICS: 'false' + # -- Host for Prometheus metrics server + CF_TELEMETRY_PROMETHEUS_HOST: '0.0.0.0' + # -- Port for Prometheus metrics server + CF_TELEMETRY_PROMETHEUS_PORT: '9100' + # -- Enable Pyroscope profiling. If enabled, the Pyroscope server address must be set in PYROSCOPE_SERVER_ADDRESS. + CF_TELEMETRY_PYROSCOPE_ENABLE: 'false' + # -- Pyroscope server address + PYROSCOPE_SERVER_ADDRESS: '' + # -- Base endpoint URL for all OpenTelemetry signals. + # Ref: https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/ + OTEL_EXPORTER_OTLP_ENDPOINT: 'http://localhost:4317' + # -- Specifies the OTLP transport protocol to be used for all telemetry data. + # Ref: https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/ + OTEL_EXPORTER_OTLP_PROTOCOL: 'grpc' + # -- Specifies the compression algorithm to be used for all telemetry data. + # Ref: https://opentelemetry.io/docs/specs/otel/protocol/exporter/ + OTEL_EXPORTER_OTLP_COMPRESSION: 'gzip' + # -- OTel Logs exporter to be used. + # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ + OTEL_LOGS_EXPORTER: 'none' + # -- OTel traces exporter to be used. + # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ + OTEL_TRACES_EXPORTER: 'none' + # -- OTel sampler to be used for traces. + # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ + OTEL_TRACES_SAMPLER: 'parentbased_always_on' + # -- OTel metrics exporter to be used. Set to "prometheus" to export metrics in Prometheus format. If set to "prometheus", it's recommended to set METRICS_SCRAPE_TIMEOUT_MS=4×scrape_interval. + # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ + OTEL_METRICS_EXPORTER: 'none' + # -- The time interval (in milliseconds) between the start of two export attempts for push metric exporters, such as "otlp". + # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ + OTEL_METRIC_EXPORT_INTERVAL: '10000' + # -- Maximum allowed time (in milliseconds) to export data for push metric exporters, such as "otlp". + # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ + OTEL_METRIC_EXPORT_TIMEOUT: '5000' + # -- Host used by the Prometheus OTel metrics exporter if OTEL_METRICS_EXPORTER=prometheus + OTEL_EXPORTER_PROMETHEUS_HOST: '0.0.0.0' + # -- Port used by the Prometheus OTel metrics exporter if OTEL_METRICS_EXPORTER=prometheus + OTEL_EXPORTER_PROMETHEUS_PORT: '9464' + # -- Emit the stable HTTP and networking OTel conventions if CF_TELEMETRY_OTEL_ALLOW_HTTP_INSTRUMENTATION=true. + OTEL_SEMCONV_STABILITY_OPT_IN: 'http' serviceAccount: create: true annotations: {} From 356be2ec26ac4de544f9a6884b517178e6771aa7 Mon Sep 17 00:00:00 2001 From: Mikhail Klimko Date: Mon, 27 Oct 2025 14:52:09 +0200 Subject: [PATCH 2/5] update app-proxy env vars --- .../environment-variables/_main-container.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml b/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml index efd84f4b..6f21a054 100644 --- a/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml +++ b/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml @@ -1,9 +1,9 @@ {{- define "cap-app-proxy.environment-variables.defaults" -}} -{{- $accountId := include "global.codefresh.accountId" . -}} -{{- $chartVersion := coalesce .Values.version .Chart.Version -}} +{{- $accountId := .Values.global.codefresh.accountId -}} +{{- $chartVersion := .Chart.Version -}} {{- $runtimeVersion := .Chart.AppVersion -}} -{{- $runtimeName := include "global.runtime.name" . -}} -{{- $appProxyVersion := coalesce .Values.app-proxy.image.tag "latest" -}} +{{- $runtimeName := .Values.global.runtime.name -}} +{{- $appProxyVersion := .Values.image.tag | default "latest" -}} ARGO_CD_URL: valueFrom: configMapKeyRef: @@ -228,9 +228,9 @@ CACHE_PASSWORD: secretKeyRef: name: gitops-runtime-redis key: auth +OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.name=%s,service.version=%s,service.namespace=%s,cf.account.id=%s,cf.gitops.runtime.name=%s,cf.gitops.runtime.version=%s,cf.gitops.runtime.chart.version=%s" "cf-gitops-app-proxy" $appProxyVersion "cf-gitops-runtime" $accountId $runtimeName $runtimeVersion $chartVersion }} {{ include "codefresh-gitops-runtime.get-proxy-env-vars" . }} {{- end -}} -OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.name=%s,service.version=%s,service.namespace=%s,cf.account.id=%s,cf.gitops.runtime.name=%s,cf.gitops.runtime.version=%s,cf.gitops.runtime.chart.version=%s" "cf-gitops-app-proxy" $appProxyVersion "cf-gitops-runtime" $accountId "$runtimeName" "$runtimeVersion" "$chartVersion" }} {{/* Read defaults from the template above and merge with the values provided in values file From ee888a9b477a42381d293f306090eaaaae113138 Mon Sep 17 00:00:00 2001 From: Zhenya Tikhonov Date: Mon, 27 Oct 2025 18:39:52 +0400 Subject: [PATCH 3/5] build: add telemetry configs --- .../_main-container.yaml | 8 +- .../_components/gitops-operator/_env.yaml | 10 ++ .../cluster-event-reporter/_env.yaml | 10 ++ .../runtime-event-reporter/_env.yaml | 10 ++ charts/gitops-runtime/values.yaml | 129 ++++++++++-------- 5 files changed, 107 insertions(+), 60 deletions(-) diff --git a/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml b/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml index 6f21a054..3dd60639 100644 --- a/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml +++ b/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml @@ -3,6 +3,7 @@ {{- $chartVersion := .Chart.Version -}} {{- $runtimeVersion := .Chart.AppVersion -}} {{- $runtimeName := .Values.global.runtime.name -}} +{{- $appProxyName := "cf-gitops-app-proxy" -}} {{- $appProxyVersion := .Values.image.tag | default "latest" -}} ARGO_CD_URL: valueFrom: @@ -29,8 +30,6 @@ CF_HOST: name: codefresh-cm key: base-url optional: true -CF_SERVICE_NAME: {{ printf "cf-gitops-app-proxy" }} -CF_SERVICE_VERSION: {{ $appProxyVersion }} CLUSTER: https://kubernetes.default.svc CLUSTER_CHUNK_SIZE: valueFrom: @@ -228,7 +227,10 @@ CACHE_PASSWORD: secretKeyRef: name: gitops-runtime-redis key: auth -OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.name=%s,service.version=%s,service.namespace=%s,cf.account.id=%s,cf.gitops.runtime.name=%s,cf.gitops.runtime.version=%s,cf.gitops.runtime.chart.version=%s" "cf-gitops-app-proxy" $appProxyVersion "cf-gitops-runtime" $accountId $runtimeName $runtimeVersion $chartVersion }} +CF_SERVICE_NAME: {{ $appProxyName }} +CF_SERVICE_VERSION: {{ $appProxyVersion }} +OTEL_SERVICE_NAME: {{ $appProxyName }} +OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.name=%s,service.version=%s,service.namespace=%s,cf.account.id=%s,cf.gitops.runtime.name=%s,cf.gitops.runtime.version=%s,cf.gitops.runtime.chart.version=%s" $appProxyName $appProxyVersion "cf-gitops-runtime" $accountId $runtimeName $runtimeVersion $chartVersion }} {{ include "codefresh-gitops-runtime.get-proxy-env-vars" . }} {{- end -}} diff --git a/charts/gitops-runtime/templates/_components/gitops-operator/_env.yaml b/charts/gitops-runtime/templates/_components/gitops-operator/_env.yaml index 395c366d..53d1a95a 100644 --- a/charts/gitops-runtime/templates/_components/gitops-operator/_env.yaml +++ b/charts/gitops-runtime/templates/_components/gitops-operator/_env.yaml @@ -25,6 +25,12 @@ WORKFLOW_MONITOR_POLLING_INTERVAL: {{ .Values.config.workflowMonitorPollingInter {{- end }} {{- define "gitops-operator.resources.environment-variables.defaults" -}} +{{- $accountId := .Values.global.codefresh.accountId -}} +{{- $chartVersion := .Chart.Version -}} +{{- $runtimeVersion := .Chart.AppVersion -}} +{{- $runtimeName := .Values.global.runtime.name -}} +{{- $gitopsOperatorVersion := .Values.image.tag | default "latest" -}} +{{- $gitopsOperatorName := "cf-gitops-gitops-operator" -}} AP_URL: http://cap-app-proxy:3017 ARGO_CD_URL: argo-cd-server:80 ARGO_WF_URL: http://argo-server:2746 @@ -45,4 +51,8 @@ RUNTIME_VERSION: configMapKeyRef: name: codefresh-cm key: version +CF_SERVICE_NAME: {{ $gitopsOperatorName }} +CF_SERVICE_VERSION: {{ $gitopsOperatorVersion }} +OTEL_SERVICE_NAME: {{ $gitopsOperatorName }} +OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.name=%s,service.version=%s,service.namespace=%s,cf.account.id=%s,cf.gitops.runtime.name=%s,cf.gitops.runtime.version=%s,cf.gitops.runtime.chart.version=%s" $gitopsOperatorName $gitopsOperatorVersion "cf-gitops-runtime" $accountId $runtimeName $runtimeVersion $chartVersion }} {{- end -}} diff --git a/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml b/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml index 982f3624..cce07dc0 100644 --- a/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml +++ b/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml @@ -23,6 +23,12 @@ CODEFRESH_SSL_CERT_PATH: {{ printf "/app/config/codefresh-tls-certs/%s" $secretK {{- end }} {{- define "cluster-event-reporter.resources.environment-variables.defaults" -}} +{{- $accountId := .Values.global.codefresh.accountId -}} +{{- $chartVersion := .Chart.Version -}} +{{- $runtimeVersion := .Chart.AppVersion -}} +{{- $runtimeName := .Values.global.runtime.name -}} +{{- $eventReporterVersion := .Values.image.tag | default "latest" -}} +{{- $eventReporterName := "cf-gitops-cluster-event-reporter" -}} REPORTER_MODE: resource APP_QUEUE_SIZE: valueFrom: @@ -186,4 +192,8 @@ RESOURCE_THREADINESS: name: cluster-event-reporter-cmd-params-cm key: resource.threadiness SERVICE_NAME: {{ include "cluster-event-reporter.fullname" . }} +CF_SERVICE_NAME: {{ $eventReporterName }} +CF_SERVICE_VERSION: {{ $eventReporterVersion }} +OTEL_SERVICE_NAME: {{ $eventReporterName }} +OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.name=%s,service.version=%s,service.namespace=%s,cf.account.id=%s,cf.gitops.runtime.name=%s,cf.gitops.runtime.version=%s,cf.gitops.runtime.chart.version=%s" $eventReporterName $eventReporterVersion "cf-gitops-runtime" $accountId $runtimeName $runtimeVersion $chartVersion }} {{- end -}} diff --git a/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml b/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml index 64cb9d97..eabbf6a3 100644 --- a/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml +++ b/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml @@ -23,6 +23,12 @@ CODEFRESH_SSL_CERT_PATH: {{ printf "/app/config/codefresh-tls-certs/%s" $secretK {{- end }} {{- define "runtime-event-reporter.resources.environment-variables.defaults" -}} +{{- $accountId := .Values.global.codefresh.accountId -}} +{{- $chartVersion := .Chart.Version -}} +{{- $runtimeVersion := .Chart.AppVersion -}} +{{- $runtimeName := .Values.global.runtime.name -}} +{{- $eventReporterVersion := .Values.image.tag | default "latest" -}} +{{- $eventReporterName := "cf-gitops-runtime-event-reporter" -}} REPORTER_MODE: app APP_QUEUE_SIZE: valueFrom: @@ -186,4 +192,8 @@ RESOURCE_THREADINESS: name: runtime-event-reporter-cmd-params-cm key: resource.threadiness SERVICE_NAME: {{ include "runtime-event-reporter.fullname" . }} +CF_SERVICE_NAME: {{ $eventReporterName }} +CF_SERVICE_VERSION: {{ $eventReporterVersion }} +OTEL_SERVICE_NAME: {{ $eventReporterName }} +OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.name=%s,service.version=%s,service.namespace=%s,cf.account.id=%s,cf.gitops.runtime.name=%s,cf.gitops.runtime.version=%s,cf.gitops.runtime.chart.version=%s" $eventReporterName $eventReporterVersion "cf-gitops-runtime" $accountId $runtimeName $runtimeVersion $chartVersion }} {{- end -}} diff --git a/charts/gitops-runtime/values.yaml b/charts/gitops-runtime/values.yaml index aa5374b2..4320651a 100644 --- a/charts/gitops-runtime/values.yaml +++ b/charts/gitops-runtime/values.yaml @@ -189,6 +189,66 @@ global: scrapeTimeout: 10s labels: {} config: {} + +anchors: + common-envs: + # -- Telemetry configuration + - &telemetry-config + # -- Level of logging for app-proxy + CF_TELEMETRY_LOGS_LEVEL: 'info' + # -- Level for logging HTTP requests + CF_TELEMETRY_LOGS_LEVEL_HTTP: 'debug' + # -- Enable OpenTelemetry signals (logs, metrics, traces) + CF_TELEMETRY_OTEL_ENABLE: 'false' + # -- Enable OTel HTTP instrumentation. + # Make sure to sanitize `url.full` and `url.query` span attributes on collector before enabling this flag, as it may contain sensitive information. + CF_TELEMETRY_OTEL_ALLOW_HTTP_INSTRUMENTATION: 'false' + # -- Enable Prometheus server + CF_TELEMETRY_PROMETHEUS_ENABLE: 'false' + # -- Enable collecting process metrics + CF_TELEMETRY_PROMETHEUS_ENABLE_PROCESS_METRICS: 'false' + # -- Host for Prometheus metrics server + CF_TELEMETRY_PROMETHEUS_HOST: '0.0.0.0' + # -- Port for Prometheus metrics server + CF_TELEMETRY_PROMETHEUS_PORT: '9100' + # -- Enable Pyroscope profiling. If enabled, the Pyroscope server address must be set in PYROSCOPE_SERVER_ADDRESS. + CF_TELEMETRY_PYROSCOPE_ENABLE: 'false' + # -- Pyroscope server address + PYROSCOPE_SERVER_ADDRESS: '' + # -- Base endpoint URL for all OpenTelemetry signals. + # Ref: https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/ + OTEL_EXPORTER_OTLP_ENDPOINT: 'http://localhost:4317' + # -- Specifies the OTLP transport protocol to be used for all telemetry data. + # Ref: https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/ + OTEL_EXPORTER_OTLP_PROTOCOL: 'grpc' + # -- Specifies the compression algorithm to be used for all telemetry data. + # Ref: https://opentelemetry.io/docs/specs/otel/protocol/exporter/ + OTEL_EXPORTER_OTLP_COMPRESSION: 'gzip' + # -- OTel Logs exporter to be used. + # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ + OTEL_LOGS_EXPORTER: 'none' + # -- OTel traces exporter to be used. + # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ + OTEL_TRACES_EXPORTER: 'none' + # -- OTel sampler to be used for traces. + # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ + OTEL_TRACES_SAMPLER: 'parentbased_always_on' + # -- OTel metrics exporter to be used. Set to "prometheus" to export metrics in Prometheus format. If set to "prometheus", it's recommended to set METRICS_SCRAPE_TIMEOUT_MS=4×scrape_interval. + # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ + OTEL_METRICS_EXPORTER: 'none' + # -- The time interval (in milliseconds) between the start of two export attempts for push metric exporters, such as "otlp". + # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ + OTEL_METRIC_EXPORT_INTERVAL: '10000' + # -- Maximum allowed time (in milliseconds) to export data for push metric exporters, such as "otlp". + # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ + OTEL_METRIC_EXPORT_TIMEOUT: '5000' + # -- Host used by the Prometheus OTel metrics exporter if OTEL_METRICS_EXPORTER=prometheus + OTEL_EXPORTER_PROMETHEUS_HOST: '0.0.0.0' + # -- Port used by the Prometheus OTel metrics exporter if OTEL_METRICS_EXPORTER=prometheus + OTEL_EXPORTER_PROMETHEUS_PORT: '9464' + # -- Emit the stable HTTP and networking OTel conventions if CF_TELEMETRY_OTEL_ALLOW_HTTP_INSTRUMENTATION=true. + OTEL_SEMCONV_STABILITY_OPT_IN: 'http' + # ------------------------------------------------------------------------------------------------------------------------- # Installer # ------------------------------------------------------------------------------------------------------------------------- @@ -541,61 +601,8 @@ app-proxy: # -- Cors settings for app-proxy. This is the list of allowed domains for platform (comma separated). cors: "https://g.codefresh.io" env: - # -- Telemetry configuration - # -- Level of logging for app-proxy - CF_TELEMETRY_LOGS_LEVEL: 'info' - # -- Level for logging HTTP requests - CF_TELEMETRY_LOGS_LEVEL_HTTP: 'debug' - # -- Enable OpenTelemetry signals (logs, metrics, traces) - CF_TELEMETRY_OTEL_ENABLE: 'false' - # -- Enable OTel HTTP instrumentation. - # Make sure to sanitize `url.full` and `url.query` span attributes on collector before enabling this flag, as it may contain sensitive information. - CF_TELEMETRY_OTEL_ALLOW_HTTP_INSTRUMENTATION: 'false' - # -- Enable Prometheus server - CF_TELEMETRY_PROMETHEUS_ENABLE: 'false' - # -- Enable collecting process metrics - CF_TELEMETRY_PROMETHEUS_ENABLE_PROCESS_METRICS: 'false' - # -- Host for Prometheus metrics server - CF_TELEMETRY_PROMETHEUS_HOST: '0.0.0.0' - # -- Port for Prometheus metrics server - CF_TELEMETRY_PROMETHEUS_PORT: '9100' - # -- Enable Pyroscope profiling. If enabled, the Pyroscope server address must be set in PYROSCOPE_SERVER_ADDRESS. - CF_TELEMETRY_PYROSCOPE_ENABLE: 'false' - # -- Pyroscope server address - PYROSCOPE_SERVER_ADDRESS: '' - # -- Base endpoint URL for all OpenTelemetry signals. - # Ref: https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/ - OTEL_EXPORTER_OTLP_ENDPOINT: 'http://localhost:4317' - # -- Specifies the OTLP transport protocol to be used for all telemetry data. - # Ref: https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/ - OTEL_EXPORTER_OTLP_PROTOCOL: 'grpc' - # -- Specifies the compression algorithm to be used for all telemetry data. - # Ref: https://opentelemetry.io/docs/specs/otel/protocol/exporter/ - OTEL_EXPORTER_OTLP_COMPRESSION: 'gzip' - # -- OTel Logs exporter to be used. - # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ - OTEL_LOGS_EXPORTER: 'none' - # -- OTel traces exporter to be used. - # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ - OTEL_TRACES_EXPORTER: 'none' - # -- OTel sampler to be used for traces. - # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ - OTEL_TRACES_SAMPLER: 'parentbased_always_on' - # -- OTel metrics exporter to be used. Set to "prometheus" to export metrics in Prometheus format. If set to "prometheus", it's recommended to set METRICS_SCRAPE_TIMEOUT_MS=4×scrape_interval. - # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ - OTEL_METRICS_EXPORTER: 'none' - # -- The time interval (in milliseconds) between the start of two export attempts for push metric exporters, such as "otlp". - # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ - OTEL_METRIC_EXPORT_INTERVAL: '10000' - # -- Maximum allowed time (in milliseconds) to export data for push metric exporters, such as "otlp". - # Ref: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/ - OTEL_METRIC_EXPORT_TIMEOUT: '5000' - # -- Host used by the Prometheus OTel metrics exporter if OTEL_METRICS_EXPORTER=prometheus - OTEL_EXPORTER_PROMETHEUS_HOST: '0.0.0.0' - # -- Port used by the Prometheus OTel metrics exporter if OTEL_METRICS_EXPORTER=prometheus - OTEL_EXPORTER_PROMETHEUS_PORT: '9464' - # -- Emit the stable HTTP and networking OTel conventions if CF_TELEMETRY_OTEL_ALLOW_HTTP_INSTRUMENTATION=true. - OTEL_SEMCONV_STABILITY_OPT_IN: 'http' + <<: + - *telemetry-config serviceAccount: create: true annotations: {} @@ -693,6 +700,8 @@ gitops-operator: repository: codefresh/codefresh-gitops-operator tag: "2784cd5" env: + <<: + - *telemetry-config GITOPS_OPERATOR_VERSION: 0.11.1 serviceAccount: create: true @@ -858,8 +867,14 @@ redis: name: "" annotations: {} event-reporters: - cluster-event-reporter: {} - runtime-event-reporter: {} + cluster-event-reporter: + env: + <<: + - *telemetry-config + runtime-event-reporter: + env: + <<: + - *telemetry-config # -- Redis-HA subchart replaces custom redis deployment when `redis-ha.enabled=true` # Ref: https://github.com/DandyDeveloper/charts/blob/master/charts/redis-ha/values.yaml redis-ha: From 8d1f525b514a31ef25cc65cb2eeae17eeb48dab2 Mon Sep 17 00:00:00 2001 From: Zhenya Tikhonov Date: Mon, 27 Oct 2025 18:55:44 +0400 Subject: [PATCH 4/5] refactor: rename anchor --- charts/gitops-runtime/values.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/gitops-runtime/values.yaml b/charts/gitops-runtime/values.yaml index cf723ae4..9218d8a9 100644 --- a/charts/gitops-runtime/values.yaml +++ b/charts/gitops-runtime/values.yaml @@ -193,7 +193,7 @@ global: anchors: common-envs: # -- Telemetry configuration - - &telemetry-config + - &otel-config # -- Base endpoint URL for all OpenTelemetry signals. # Ref: https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/ OTEL_EXPORTER_OTLP_ENDPOINT: 'http://localhost:4317' @@ -581,7 +581,7 @@ app-proxy: cors: "https://g.codefresh.io" env: <<: - - *telemetry-config + - *otel-config # -- Level of logging for app-proxy CF_TELEMETRY_LOGS_LEVEL: 'info' # -- Level for logging HTTP requests @@ -701,7 +701,7 @@ gitops-operator: tag: "2784cd5" env: <<: - - *telemetry-config + - *otel-config GITOPS_OPERATOR_VERSION: 0.11.1 serviceAccount: create: true @@ -870,11 +870,11 @@ event-reporters: cluster-event-reporter: env: <<: - - *telemetry-config + - *otel-config runtime-event-reporter: env: <<: - - *telemetry-config + - *otel-config # -- Redis-HA subchart replaces custom redis deployment when `redis-ha.enabled=true` # Ref: https://github.com/DandyDeveloper/charts/blob/master/charts/redis-ha/values.yaml redis-ha: From 2c7acfcdd122bab618316b194e1c2486024217f9 Mon Sep 17 00:00:00 2001 From: Zhenya Tikhonov Date: Tue, 4 Nov 2025 15:01:25 +0400 Subject: [PATCH 5/5] refactor: remove redundant service name prefixes --- .../cap-app-proxy/environment-variables/_main-container.yaml | 2 +- .../templates/_components/gitops-operator/_env.yaml | 2 +- .../templates/event-reporters/cluster-event-reporter/_env.yaml | 2 +- .../templates/event-reporters/runtime-event-reporter/_env.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml b/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml index 3dd60639..807ccb89 100644 --- a/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml +++ b/charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml @@ -3,7 +3,7 @@ {{- $chartVersion := .Chart.Version -}} {{- $runtimeVersion := .Chart.AppVersion -}} {{- $runtimeName := .Values.global.runtime.name -}} -{{- $appProxyName := "cf-gitops-app-proxy" -}} +{{- $appProxyName := "app-proxy" -}} {{- $appProxyVersion := .Values.image.tag | default "latest" -}} ARGO_CD_URL: valueFrom: diff --git a/charts/gitops-runtime/templates/_components/gitops-operator/_env.yaml b/charts/gitops-runtime/templates/_components/gitops-operator/_env.yaml index 53d1a95a..11892a07 100644 --- a/charts/gitops-runtime/templates/_components/gitops-operator/_env.yaml +++ b/charts/gitops-runtime/templates/_components/gitops-operator/_env.yaml @@ -30,7 +30,7 @@ WORKFLOW_MONITOR_POLLING_INTERVAL: {{ .Values.config.workflowMonitorPollingInter {{- $runtimeVersion := .Chart.AppVersion -}} {{- $runtimeName := .Values.global.runtime.name -}} {{- $gitopsOperatorVersion := .Values.image.tag | default "latest" -}} -{{- $gitopsOperatorName := "cf-gitops-gitops-operator" -}} +{{- $gitopsOperatorName := "gitops-operator" -}} AP_URL: http://cap-app-proxy:3017 ARGO_CD_URL: argo-cd-server:80 ARGO_WF_URL: http://argo-server:2746 diff --git a/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml b/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml index cce07dc0..e61602fa 100644 --- a/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml +++ b/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml @@ -28,7 +28,7 @@ CODEFRESH_SSL_CERT_PATH: {{ printf "/app/config/codefresh-tls-certs/%s" $secretK {{- $runtimeVersion := .Chart.AppVersion -}} {{- $runtimeName := .Values.global.runtime.name -}} {{- $eventReporterVersion := .Values.image.tag | default "latest" -}} -{{- $eventReporterName := "cf-gitops-cluster-event-reporter" -}} +{{- $eventReporterName := "cluster-event-reporter" -}} REPORTER_MODE: resource APP_QUEUE_SIZE: valueFrom: diff --git a/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml b/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml index eabbf6a3..6d1e53ee 100644 --- a/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml +++ b/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml @@ -28,7 +28,7 @@ CODEFRESH_SSL_CERT_PATH: {{ printf "/app/config/codefresh-tls-certs/%s" $secretK {{- $runtimeVersion := .Chart.AppVersion -}} {{- $runtimeName := .Values.global.runtime.name -}} {{- $eventReporterVersion := .Values.image.tag | default "latest" -}} -{{- $eventReporterName := "cf-gitops-runtime-event-reporter" -}} +{{- $eventReporterName := "runtime-event-reporter" -}} REPORTER_MODE: app APP_QUEUE_SIZE: valueFrom: