aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/components
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2025-03-27 16:30:54 +0100
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2025-03-28 08:29:49 +0100
commit6be5e05159a6e1b64efcb0bc662a240d749d4fa6 (patch)
treec865a6fdd3d14d853b4bab3ebdbc423aee6b3887 /kubernetes/aai/components
parent0c20c1cb3e23462fd762b27668f097b05f775434 (diff)
Make tracing configurable via globals
- define settings for jaeger url, enabling/disabling and sampling probability in globals - have tracing disabled by default Issue-ID: AAI-4152 Change-Id: I061ac681fc4dcb079a326d0c58dd5160255955c4 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'kubernetes/aai/components')
-rw-r--r--kubernetes/aai/components/aai-babel/resources/config/application.properties6
-rw-r--r--kubernetes/aai/components/aai-babel/values.yaml11
-rw-r--r--kubernetes/aai/components/aai-modelloader/resources/application.properties6
-rw-r--r--kubernetes/aai/components/aai-modelloader/values.yaml14
-rw-r--r--kubernetes/aai/components/aai-resources/Chart.yaml2
-rw-r--r--kubernetes/aai/components/aai-resources/resources/config/application.properties7
-rw-r--r--kubernetes/aai/components/aai-resources/values.yaml11
-rw-r--r--kubernetes/aai/components/aai-schema-service/config/application.properties11
-rw-r--r--kubernetes/aai/components/aai-schema-service/values.yaml8
-rw-r--r--kubernetes/aai/components/aai-traversal/Chart.yaml2
-rw-r--r--kubernetes/aai/components/aai-traversal/resources/config/application.properties7
-rw-r--r--kubernetes/aai/components/aai-traversal/values.yaml12
12 files changed, 52 insertions, 45 deletions
diff --git a/kubernetes/aai/components/aai-babel/resources/config/application.properties b/kubernetes/aai/components/aai-babel/resources/config/application.properties
index 8c7e91ab84..8f47bf084b 100644
--- a/kubernetes/aai/components/aai-babel/resources/config/application.properties
+++ b/kubernetes/aai/components/aai-babel/resources/config/application.properties
@@ -25,11 +25,11 @@ logging.config=${CONFIG_HOME}/logback.xml
tosca.mappings.config=${CONFIG_HOME}/tosca-mappings.json
spring.application.name=aai-babel
-spring.sleuth.enabled={{ default .Values.global.tracing.enabled .Values.tracing.enabled }}
-spring.zipkin.baseUrl={{ default .Values.global.tracing.collector.baseUrl .Values.tracing.collector.baseUrl }}
+spring.sleuth.enabled={{ .Values.global.tracing.enabled }}
+spring.zipkin.baseUrl={{ .Values.global.tracing.collector.baseUrl }}
spring.sleuth.messaging.jms.enabled = false
spring.sleuth.trace-id128=true
-spring.sleuth.sampler.probability={{ default .Values.global.tracing.sampling.probability .Values.tracing.collector.baseUrl }}
+spring.sleuth.sampler.probability={{ .Values.global.tracing.sampling.probability }}
spring.sleuth.propagation.type=w3c, b3
spring.sleuth.supports-join=false
diff --git a/kubernetes/aai/components/aai-babel/values.yaml b/kubernetes/aai/components/aai-babel/values.yaml
index cfe70ffc76..7bd28b02b8 100644
--- a/kubernetes/aai/components/aai-babel/values.yaml
+++ b/kubernetes/aai/components/aai-babel/values.yaml
@@ -22,7 +22,7 @@ global:
tracing:
enabled: false
collector:
- baseUrl: http://jaeger-collector.istio-system:9411
+ baseUrl: http://jaeger-collector.istio-config:9411
sampling:
probability: 1.0
@@ -103,15 +103,6 @@ resources:
memory: "1Gi"
unlimited: {}
-##
-## Use this to override the global defaults
-tracing:
-# enabled: false
- collector: {}
-# baseUrl: http://jaeger-collector.istio-system:9411
- sampling: {}
-# probability: 1.0 # percentage of requests that are sampled (between 0-1/0%-100%)
-
# adds jvm args for remote debugging the application
debug:
enabled: false
diff --git a/kubernetes/aai/components/aai-modelloader/resources/application.properties b/kubernetes/aai/components/aai-modelloader/resources/application.properties
index f910af1cae..e2dc186c82 100644
--- a/kubernetes/aai/components/aai-modelloader/resources/application.properties
+++ b/kubernetes/aai/components/aai-modelloader/resources/application.properties
@@ -14,11 +14,11 @@ server.port=9500
spring.application.name=aai-model-loader
-spring.sleuth.enabled={{ .Values.tracing.enabled }}
-spring.zipkin.baseUrl={{ .Values.tracing.collector.baseUrl }}
+spring.sleuth.enabled={{ .Values.global.tracing.enabled }}
+spring.zipkin.baseUrl={{ .Values.global.tracing.collector.baseUrl }}
spring.sleuth.messaging.jms.enabled=false
spring.sleuth.trace-id128=true
-spring.sleuth.sampler.probability={{ .Values.tracing.sampling.probability }}
+spring.sleuth.sampler.probability={{ .Values.global.tracing.sampling.probability }}
spring.sleuth.propagation.type=w3c,b3
spring.sleuth.supports-join=false
spring.sleuth.web.skip-pattern={{ join "," .Values.tracing.ignorePatterns }}
diff --git a/kubernetes/aai/components/aai-modelloader/values.yaml b/kubernetes/aai/components/aai-modelloader/values.yaml
index eae505458e..08d635107b 100644
--- a/kubernetes/aai/components/aai-modelloader/values.yaml
+++ b/kubernetes/aai/components/aai-modelloader/values.yaml
@@ -19,6 +19,13 @@
# Declare variables to be passed into your templates.
global: # global defaults
nodePortPrefix: 302
+ tracing:
+ enabled: false
+ collector:
+ baseUrl: http://jaeger-collector.istio-config:9411
+ sampling:
+ probability: 1.0 # percentage of requests that are sampled (between 0-1/0%-100%)
+
# application image
image: onap/model-loader:1.14.2
@@ -108,12 +115,9 @@ resources:
memory: "2Gi"
unlimited: {}
+# use this to define service specific overrides
+# for the global.tracing.* config keys
tracing:
- enabled: false
- collector:
- baseUrl: http://jaeger-collector.istio-system:9411
- sampling:
- probability: 1.0 # percentage of requests that are sampled (between 0-1/0%-100%)
ignorePatterns:
- /aai/util.*
diff --git a/kubernetes/aai/components/aai-resources/Chart.yaml b/kubernetes/aai/components/aai-resources/Chart.yaml
index 44b54bc3d3..7e6c6b6bd7 100644
--- a/kubernetes/aai/components/aai-resources/Chart.yaml
+++ b/kubernetes/aai/components/aai-resources/Chart.yaml
@@ -18,7 +18,7 @@
apiVersion: v2
description: ONAP AAI resources
name: aai-resources
-version: 15.0.2
+version: 15.0.3
dependencies:
- name: common
diff --git a/kubernetes/aai/components/aai-resources/resources/config/application.properties b/kubernetes/aai/components/aai-resources/resources/config/application.properties
index 6c34705e8a..daa4e7dfe4 100644
--- a/kubernetes/aai/components/aai-resources/resources/config/application.properties
+++ b/kubernetes/aai/components/aai-resources/resources/config/application.properties
@@ -28,11 +28,10 @@ spring.jersey.type=filter
spring.main.allow-bean-definition-overriding=true
server.servlet.context-path=/
-spring.sleuth.enabled={{ .Values.tracing.enabled }}
-spring.zipkin.baseUrl={{ .Values.tracing.collector.baseUrl }}
-spring.sleuth.messaging.jms.enabled = false
+spring.sleuth.enabled={{ .Values.global.tracing.enabled }}
+spring.zipkin.baseUrl={{ .Values.global.tracing.collector.baseUrl }}
spring.sleuth.trace-id128=true
-spring.sleuth.sampler.probability={{ .Values.tracing.sampling.probability }}
+spring.sleuth.sampler.probability={{ .Values.global.tracing.sampling.probability }}
spring.sleuth.propagation.type=w3c, b3
spring.sleuth.supports-join=false
spring.sleuth.web.skip-pattern={{ join "," .Values.tracing.ignorePatterns }}
diff --git a/kubernetes/aai/components/aai-resources/values.yaml b/kubernetes/aai/components/aai-resources/values.yaml
index 625267b318..861d6dacbd 100644
--- a/kubernetes/aai/components/aai-resources/values.yaml
+++ b/kubernetes/aai/components/aai-resources/values.yaml
@@ -26,6 +26,12 @@ global: # global defaults
#Service Name of the cassandra cluster to connect to.
#Override it to aai-cassandra if localCluster is enabled.
serviceName: cassandra
+ tracing:
+ enabled: false
+ collector:
+ baseUrl: http://jaeger-collector.istio-config:9411
+ sampling:
+ probability: 1.0
# Specifies a list of jobs to be run
jobs:
@@ -318,11 +324,6 @@ resources:
unlimited: {}
tracing:
- enabled: false
- collector:
- baseUrl: http://jaeger-collector.istio-system:9411
- sampling:
- probability: 1.0 # percentage of requests that are sampled (between 0-1/0%-100%)
ignorePatterns:
- /aai/util.*
diff --git a/kubernetes/aai/components/aai-schema-service/config/application.properties b/kubernetes/aai/components/aai-schema-service/config/application.properties
index fc7bd40892..098be2fc59 100644
--- a/kubernetes/aai/components/aai-schema-service/config/application.properties
+++ b/kubernetes/aai/components/aai-schema-service/config/application.properties
@@ -24,12 +24,17 @@ info.build.version=1.1.0
spring.application.name=aai-schema-service
spring.jersey.type=filter
spring.main.allow-bean-definition-overriding=true
-spring.sleuth.enabled={{ .Values.tracing.enabled }}
-spring.zipkin.baseUrl={{ .Values.tracing.collector.baseUrl }}
+
+spring.sleuth.enabled={{ .Values.global.tracing.enabled }}
+spring.zipkin.baseUrl={{ .Values.global.tracing.collector.baseUrl }}
spring.sleuth.trace-id128=true
-spring.sleuth.sampler.probability={{ .Values.tracing.sampling.probability }}
+spring.sleuth.sampler.probability={{ .Values.global.tracing.sampling.probability }}
spring.sleuth.propagation.type=w3c, b3
spring.sleuth.supports-join=false
+{{- if and .Values.tracing .Values.tracing.ignorePatterns }}
+spring.sleuth.web.skip-pattern={{ join "," .Values.tracing.ignorePatterns }}
+{{- end }}
+
server.servlet.context-path=/
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
diff --git a/kubernetes/aai/components/aai-schema-service/values.yaml b/kubernetes/aai/components/aai-schema-service/values.yaml
index f1227835b6..f47c9a5e8e 100644
--- a/kubernetes/aai/components/aai-schema-service/values.yaml
+++ b/kubernetes/aai/components/aai-schema-service/values.yaml
@@ -19,6 +19,12 @@
# Declare variables to be passed into your templates.
global: # global defaults
nodePortPrefix: 302
+ tracing:
+ enabled: false
+ collector:
+ baseUrl: http://jaeger-collector.istio-config:9411
+ sampling:
+ probability: 1.0 # percentage of requests that are sampled (between 0-1/0%-100%)
# Common configuration for resources traversal and graphadmin
config:
@@ -188,6 +194,6 @@ podAnnotations:
tracing:
enabled: false
collector:
- baseUrl: http://jaeger-collector.istio-system:9411
+ baseUrl: http://jaeger-collector.istio-config:9411
sampling:
probability: 1.0 # percentage of requests that are sampled (between 0-1/0%-100%)
diff --git a/kubernetes/aai/components/aai-traversal/Chart.yaml b/kubernetes/aai/components/aai-traversal/Chart.yaml
index d23237577d..03c27cb6bb 100644
--- a/kubernetes/aai/components/aai-traversal/Chart.yaml
+++ b/kubernetes/aai/components/aai-traversal/Chart.yaml
@@ -17,7 +17,7 @@
apiVersion: v2
description: ONAP AAI traversal
name: aai-traversal
-version: 15.0.2
+version: 15.0.3
dependencies:
- name: common
diff --git a/kubernetes/aai/components/aai-traversal/resources/config/application.properties b/kubernetes/aai/components/aai-traversal/resources/config/application.properties
index f6fad88c19..027c9cd215 100644
--- a/kubernetes/aai/components/aai-traversal/resources/config/application.properties
+++ b/kubernetes/aai/components/aai-traversal/resources/config/application.properties
@@ -32,11 +32,10 @@ spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSou
spring.profiles.active={{ .Values.global.config.profiles.active }}
spring.jersey.application-path=/
-spring.sleuth.enabled={{ .Values.tracing.enabled }}
-spring.zipkin.baseUrl={{ .Values.tracing.collector.baseUrl }}
-spring.sleuth.messaging.jms.enabled = false
+spring.sleuth.enabled={{ .Values.global.tracing.enabled }}
+spring.zipkin.baseUrl={{ .Values.global.tracing.collector.baseUrl }}
spring.sleuth.trace-id128=true
-spring.sleuth.sampler.probability={{ .Values.tracing.sampling.probability }}
+spring.sleuth.sampler.probability={{ .Values.global.tracing.sampling.probability }}
spring.sleuth.propagation.type=w3c, b3
spring.sleuth.supports-join=false
spring.sleuth.web.skip-pattern={{ join "," .Values.tracing.ignorePatterns }}
diff --git a/kubernetes/aai/components/aai-traversal/values.yaml b/kubernetes/aai/components/aai-traversal/values.yaml
index 81f8e668c1..302d08e04c 100644
--- a/kubernetes/aai/components/aai-traversal/values.yaml
+++ b/kubernetes/aai/components/aai-traversal/values.yaml
@@ -28,6 +28,13 @@ global: # global defaults
serviceName: cassandra
# Cassandra datacenter name
localDataCenter: dc1
+ tracing:
+ enabled: false
+ collector:
+ baseUrl: http://jaeger-collector.istio-config:9411
+ sampling:
+ probability: 1.0 # percentage of requests that are sampled (between 0-1/0%-100%)
+
# Specifies a list of jobs to be run
jobs:
# When enabled, it will create the schema based on oxm and edge rules
@@ -340,11 +347,6 @@ autoscaling:
targetCPUUtilizationPercentage: 80
tracing:
- enabled: false
- collector:
- baseUrl: http://jaeger-collector.istio-system:9411
- sampling:
- probability: 1.0 # percentage of requests that are sampled (between 0-1/0%-100%)
ignorePatterns:
- /aai/util.*