mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
17 lines
443 B
YAML
17 lines
443 B
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
labels:
|
|
release: prometheus
|
|
name: kuberay-apiserver
|
|
namespace: prometheus-system # ns where prometheus is deployed
|
|
spec:
|
|
endpoints:
|
|
- targetPort: http
|
|
path: /metrics
|
|
namespaceSelector:
|
|
matchNames:
|
|
- default # ns where API server is deployed
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: kuberay-apiserver |