feat: add service discovery, OTel instrumentation, and k6 load tests
This commit is contained in:
251
overlays/otel/patches/otel-patch.yaml
Normal file
251
overlays/otel/patches/otel-patch.yaml
Normal file
@@ -0,0 +1,251 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: ad
|
||||
namespace: default
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-java: monitoring/otel-instrumentation
|
||||
spec:
|
||||
containers:
|
||||
- name: ad
|
||||
env:
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: ad
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||
value: app=lint-enforcement-v3
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: email
|
||||
namespace: default
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-ruby: monitoring/otel-instrumentation
|
||||
spec:
|
||||
containers:
|
||||
- name: email
|
||||
env:
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: email
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||
value: app=lint-enforcement-v3
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: fraud-detection
|
||||
namespace: default
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-java: monitoring/otel-instrumentation
|
||||
spec:
|
||||
containers:
|
||||
- name: fraud-detection
|
||||
env:
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: fraud-detection
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||
value: app=lint-enforcement-v3
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: frontend
|
||||
namespace: default
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-nodejs: monitoring/otel-instrumentation
|
||||
spec:
|
||||
containers:
|
||||
- name: frontend
|
||||
env:
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: frontend
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||
value: app=lint-enforcement-v3
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: kafka
|
||||
namespace: default
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-python: monitoring/otel-instrumentation
|
||||
spec:
|
||||
containers:
|
||||
- name: kafka
|
||||
env:
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: kafka
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||
value: app=lint-enforcement-v3
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: llm
|
||||
namespace: default
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-python: monitoring/otel-instrumentation
|
||||
spec:
|
||||
containers:
|
||||
- name: llm
|
||||
env:
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: llm
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||
value: app=lint-enforcement-v3
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: load-generator
|
||||
namespace: default
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-python: monitoring/otel-instrumentation
|
||||
spec:
|
||||
containers:
|
||||
- name: load-generator
|
||||
env:
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: load-generator
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||
value: app=lint-enforcement-v3
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: payment
|
||||
namespace: default
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-nodejs: monitoring/otel-instrumentation
|
||||
spec:
|
||||
containers:
|
||||
- name: payment
|
||||
env:
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: payment
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||
value: app=lint-enforcement-v3
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: product-reviews
|
||||
namespace: default
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-python: monitoring/otel-instrumentation
|
||||
spec:
|
||||
containers:
|
||||
- name: product-reviews
|
||||
env:
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: product-reviews
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||
value: app=lint-enforcement-v3
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: recommendation
|
||||
namespace: default
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-python: monitoring/otel-instrumentation
|
||||
spec:
|
||||
containers:
|
||||
- name: recommendation
|
||||
env:
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: recommendation
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||
value: app=lint-enforcement-v3
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: opensearch
|
||||
namespace: default
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-java: monitoring/otel-instrumentation
|
||||
spec:
|
||||
containers:
|
||||
- name: opensearch
|
||||
env:
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: opensearch
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||
value: app=lint-enforcement-v3
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: grafana
|
||||
namespace: default
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-python: monitoring/otel-instrumentation
|
||||
spec:
|
||||
containers:
|
||||
- name: grafana-sc-alerts
|
||||
env:
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: grafana
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||
value: app=lint-enforcement-v3
|
||||
Reference in New Issue
Block a user