-
Notifications
You must be signed in to change notification settings - Fork 213
Expand file tree
/
Copy pathmcpserver_fetch_otel.yaml
More file actions
46 lines (46 loc) · 1.25 KB
/
mcpserver_fetch_otel.yaml
File metadata and controls
46 lines (46 loc) · 1.25 KB
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
36
37
38
39
40
41
42
43
44
45
46
# Shared MCPTelemetryConfig with OTLP tracing, metrics, and Prometheus.
#
# Define telemetry configuration once and reference it from multiple MCPServers.
# Each MCPServer provides a unique serviceName for its traces and metrics.
apiVersion: toolhive.stacklok.dev/v1beta1
kind: MCPTelemetryConfig
metadata:
name: basic-telemetry
namespace: toolhive-system
spec:
openTelemetry:
enabled: true
endpoint: otel-collector-opentelemetry-collector.monitoring.svc.cluster.local:4318
insecure: true
tracing:
enabled: true
samplingRate: "0.1"
metrics:
enabled: true
prometheus:
enabled: true
---
# MCPServer that references the shared MCPTelemetryConfig above.
#
# The telemetryConfigRef replaces the deprecated inline spec.telemetry field.
# serviceName provides a unique OTel service name for this server's telemetry.
apiVersion: toolhive.stacklok.dev/v1beta1
kind: MCPServer
metadata:
name: fetch
namespace: toolhive-system
spec:
image: ghcr.io/stackloklabs/gofetch/server
transport: streamable-http
proxyPort: 8080
mcpPort: 8080
resources:
limits:
cpu: "100m"
memory: "128Mi"
requests:
cpu: "50m"
memory: "64Mi"
telemetryConfigRef:
name: basic-telemetry
serviceName: mcp-fetch-server