@@ -65,34 +65,47 @@ However, if exporting off-cluster to a 3rd party observability vendor, the colle
6565and can provide a single place with which to receive telemetry from various workloads and export as a single authenticated and
6666secure OTLP stream.
6767
68+ #### Central OpenTelemetry Collector
69+
6870To create a central opentelemetry-collector, update the
6971[ otel-collector/otel-collector.yaml] ( ./otel-collector/otel-collector.yaml ) to match your requirements and then apply.
7072
7173``` bash
7274oc apply --kustomize ./otel-collector -n observability-hub
7375```
7476
75- ### OpenTelemetryCollector Sidecars deployment
77+ #### OpenTelemetryCollector Sidecars deployment
7678
7779You can add individual metrics endpoints to the central otel-collector in observability-hub, but
7880another way is to add otel-collector sidecar containers to individual deployments throughout the
7981cluster. Paired with an annotation on the deployment, telemetry will be exported as configured.
80- Any deployment with the annotation below will receive and export telemetry as configured in the
82+
83+ Any deployment with the template.metadata.annotations ` sidecar.opentelemetry.io/inject: vllm-otelsidecar `
84+ will receive and export telemetry as configured in the
8185[ otel-collector-vllm-sidecar.yaml] ( ./otel-collector/otel-collector-vllm-sidecar.yaml ) .
8286
83- The example here will add an otel-collector sidecar custom resource to the ` llama-serve ` namespace,
84- and to trigger a sidecar container, annotate any deployment's ` template.metadata.annotations ` with:
85- ` sidecar.opentelemetry.io/inject: vllm-otelsidecar `
87+ Any deployment with the template.metadata.annotations ` sidecar.opentelemetry.io/inject: llamastack-otelsidecar `
88+ will receive and export telemetry as configured in the
89+ [ otel-collector-llamstack-sidecar.yaml] ( ./otel-collector/otel-collector-llamastack-sidecar.yaml ) .
90+
91+ The example below will add otel-collector sidecar custom resources to the ` llama-serve ` namespace,
92+ and upon a scale down, scale up of the deployments with the added annotations, sidecar otel-collector
93+ containers will be added to the pods.
8694
8795``` bash
88- oc apply -f ./otel-collector/otel-collector-vllm-sidecar.yaml
96+ oc apply -f ./otel-collector/otel-collector-vllm-sidecar.yaml -n llama-serve
97+ oc apply -f ./otel-collector/otel-collector-llamastack-sidecar.yaml -n llama-serve
98+
99+ # Then, annotate whatever deployment you'd like to collect telemetry from
100+ # Add the annotation to the deployment's `template.metadata.annotations` from the console.
101+ # OR
102+ # Patch or modify the llamastack and vLLM deployments with the appropriate annotation.
103+ # Replace `deployment-name`, `namespace`, and `name-of-otelsideccar` in the below command.
89104
90- # Then, annotate whatever vllm deployment you'd like to collect metrics from
91- # Or, add the annotation to the deployment's `template.metadata.annotations` from the console.
92- oc patch deployment < deployment-name> \
93- -n < namespace> \
105+ oc patch deployment deployment-name \
106+ -n namespace \
94107 --type=' merge' \
95- -p ' {"spec":{"template":{"metadata":{"annotations":{"sidecar.opentelemetry.io/inject":"vllm -otelsidecar"}}}}}'
108+ -p ' {"spec":{"template":{"metadata":{"annotations":{"sidecar.opentelemetry.io/inject":"name-of -otelsidecar"}}}}}'
96109```
97110
98111### Cluster Observability Operator Tracing UIPlugin
0 commit comments