Skip to content

Commit a4c9b25

Browse files
committed
updated weaviate OTel collector config
1 parent b90aa46 commit a4c9b25

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

content/en/ninja-workshops/14-cisco-ai-pods/8-deploy-vector-db.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,14 @@ Now that Weaviate is installed in our OpenShift cluster, let's modify the
8585
OpenTelemetry collector configuration to scrape Weaviate's Prometheus
8686
metrics.
8787

88-
To do so, let's add an additional Prometheus receiver to the `otel-collector-values.yaml` file:
88+
To do so, let's add an additional Prometheus receiver creator section
89+
to the `otel-collector-values.yaml` file:
8990

9091
``` yaml
92+
receiver_creator/weaviate:
93+
# Name of the extensions to watch for endpoints to start and stop.
94+
watch_observers: [ k8s_observer ]
95+
receivers:
9196
prometheus/weaviate:
9297
config:
9398
config:
@@ -142,12 +147,12 @@ that we can more easily distinguish Weaviate metrics from other metrics that use
142147
`service.instance.id`, which is a standard OpenTelemetry property used in
143148
Splunk Observability Cloud.
144149

145-
We'll need to add this Resource processor to the metrics pipeline as well:
150+
We'll need to add a new metrics pipeline for Weaviate metrics as well (we
151+
need to use a separate pipeline since we don't want the `weaviate.instance.id`
152+
metric to be added to non-Weaviate metrics):
146153

147154
``` yaml
148-
service:
149-
pipelines:
150-
metrics/nvidia-metrics:
155+
metrics/weaviate:
151156
exporters:
152157
- signalfx
153158
processors:
@@ -158,7 +163,7 @@ We'll need to add this Resource processor to the metrics pipeline as well:
158163
- resourcedetection
159164
- resource
160165
receivers:
161-
- receiver_creator/nvidia
166+
- receiver_creator/weaviate
162167
```
163168

164169
Before applying the configuration changes to the collector, take a moment to compare the

workshop/cisco-ai-pods/otel-collector/otel-collector-values-with-weaviate.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ agent:
147147
- targets:
148148
- '`endpoint`:8000'
149149
rule: type == "pod" && labels["app"] == "meta-llama-3-2-1b-instruct"
150+
receiver_creator/weaviate:
151+
# Name of the extensions to watch for endpoints to start and stop.
152+
watch_observers: [ k8s_observer ]
153+
receivers:
150154
prometheus/weaviate:
151155
config:
152156
config:
@@ -160,6 +164,17 @@ agent:
160164
service:
161165
pipelines:
162166
metrics/nvidia-metrics:
167+
exporters:
168+
- signalfx
169+
processors:
170+
- memory_limiter
171+
- filter/metrics_to_be_included
172+
- batch
173+
- resourcedetection
174+
- resource
175+
receivers:
176+
- receiver_creator/nvidia
177+
metrics/weaviate:
163178
exporters:
164179
- signalfx
165180
processors:
@@ -170,4 +185,4 @@ agent:
170185
- resourcedetection
171186
- resource
172187
receivers:
173-
- receiver_creator/nvidia
188+
- receiver_creator/weaviate

0 commit comments

Comments
 (0)