-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathotel-collector.yaml
35 lines (35 loc) · 1017 Bytes
/
otel-collector.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: cluster-collector
namespace: opendatahub-edge-collector
labels:
app.kubernetes.io/managed-by: opentelemetry-operator
spec:
mode: deployment
observability:
metrics:
enableMetrics: true
config: |
receivers:
prometheus:
config:
scrape_configs:
- bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
job_name: otel-collector
metrics_path: /metrics
scrape_interval: 5s
static_configs:
- targets:
- tensorflow-housing-app-model-1.tensorflow-housing-app.svc.cluster.local:8080
- bike-rental-app-model-1.bike-rental-app.svc.cluster.local:8082
exporters:
prometheus:
endpoint: 0.0.0.0:8889
service:
pipelines:
metrics:
exporters:
- prometheus
receivers:
- prometheus