forked from opendatahub-io/ai-edge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathotel-collector.yaml
33 lines (33 loc) · 1003 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
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:
- job_name: 'otel-collector'
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
scrape_interval: 5s
metrics_path: "/metrics"
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']
processors:
exporters:
prometheus:
endpoint: "0.0.0.0:8889"
service:
pipelines:
metrics:
receivers: [prometheus]
processors: []
exporters: [prometheus]