feat(observability): enable OTLP tracing, fix Prometheus scraping, add proxy ServiceMonitor
- Set otlp_endpoint to Tempo HTTP receiver (port 4318) for request tracing - Add hostNetwork to prometheusSpec so it can reach kubelet/node-exporter on node public IP - Add ServiceMonitor for proxy metrics scrape on port 9090 - Add CORS origin and Grafana datasource config for monitoring stack
This commit is contained in:
@@ -9,6 +9,7 @@ resources:
|
||||
- pingora-deployment.yaml
|
||||
- pingora-service.yaml
|
||||
- pingora-config.yaml
|
||||
- pingora-servicemonitor.yaml
|
||||
|
||||
images:
|
||||
- name: sunbeam-proxy
|
||||
|
||||
@@ -21,8 +21,7 @@ data:
|
||||
key_path = "/etc/tls/tls.key"
|
||||
|
||||
[telemetry]
|
||||
# Empty = OTEL disabled. Set to http://otel-collector.data.svc:4318 when ready.
|
||||
otlp_endpoint = ""
|
||||
otlp_endpoint = "http://tempo.monitoring.svc.cluster.local:4318"
|
||||
metrics_port = 9090
|
||||
|
||||
# Kubernetes resource names for cert/config watchers.
|
||||
|
||||
15
base/ingress/pingora-servicemonitor.yaml
Normal file
15
base/ingress/pingora-servicemonitor.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: pingora
|
||||
namespace: ingress
|
||||
labels:
|
||||
app: pingora
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: pingora
|
||||
endpoints:
|
||||
- port: metrics
|
||||
interval: 15s
|
||||
path: /metrics
|
||||
Reference in New Issue
Block a user