Skip to content

Commit d0c8469

Browse files
committed
add otel sidecar to llamastack deployment
Signed-off-by: sallyom <somalley@redhat.com>
1 parent 02d9e71 commit d0c8469

2 files changed

Lines changed: 61 additions & 3 deletions

File tree

kubernetes/llama-stack/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ spec:
88
app: llamastack
99
template:
1010
metadata:
11-
#annotations:
12-
# sidecar.opentelemetry.io/inject: otelsidecar
11+
annotations:
12+
sidecar.opentelemetry.io/inject: llamastack-otelsidecar
1313
labels:
1414
app: llamastack
1515
spec:
@@ -47,7 +47,7 @@ spec:
4747
- name: OTEL_SERVICE_NAME
4848
value: om-llamastack
4949
- name: OTEL_TRACE_ENDPOINT
50-
value: 'http://otel-collector-collector.observability-hub.svc.cluster.local:4318/v1/traces'
50+
value: 'http://localhost:4318/v1/traces'
5151
- name: SAFETY_MODEL
5252
value: meta-llama/Llama-Guard-3-8B
5353
- name: SAFETY_VLLM_URL
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Once this exists, any pod with the template.metadata.annotation below will send metrics
2+
# to observability-hub:
3+
# sidecar.opentelemetry.io/inject: llamastack-otelsidecar
4+
apiVersion: opentelemetry.io/v1beta1
5+
kind: OpenTelemetryCollector
6+
metadata:
7+
name: llamastack-otelsidecar
8+
spec:
9+
observability:
10+
metrics: {}
11+
deploymentUpdateStrategy: {}
12+
config:
13+
exporters:
14+
debug: {}
15+
otlphttp:
16+
# all sidecars export to the central observability-hub otel-collector, then be
17+
# exported to various backends from there (in-cluster, external 3rd party)
18+
# this is deployed with ../observability/otel-collector manifests
19+
# see ../observability/README.md for how to deploy this collector
20+
endpoint: 'http://otel-collector-collector.observability-hub.svc.cluster.local:4318'
21+
tls:
22+
insecure: true
23+
processors: {}
24+
receivers:
25+
otlp:
26+
protocols:
27+
grpc: {}
28+
http: {}
29+
service:
30+
pipelines:
31+
traces:
32+
exporters:
33+
- debug
34+
- otlphttp
35+
receivers:
36+
- otlp
37+
telemetry:
38+
metrics:
39+
address: '0.0.0.0:8888'
40+
mode: sidecar
41+
resources: {}
42+
podDnsConfig: {}
43+
managementState: managed
44+
upgradeStrategy: automatic
45+
ingress:
46+
route: {}
47+
daemonSetUpdateStrategy: {}
48+
targetAllocator:
49+
allocationStrategy: consistent-hashing
50+
filterStrategy: relabel-config
51+
observability:
52+
metrics: {}
53+
prometheusCR:
54+
scrapeInterval: 30s
55+
resources: {}
56+
replicas: 1
57+
ipFamilyPolicy: SingleStack
58+

0 commit comments

Comments
 (0)