mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
64 lines
1.9 KiB
YAML
64 lines
1.9 KiB
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: PodMonitor
|
|
metadata:
|
|
name: ray-workers-monitor
|
|
namespace: prometheus-system
|
|
labels:
|
|
# `release: $HELM_RELEASE`: Prometheus can only detect PodMonitor with this label.
|
|
release: prometheus
|
|
spec:
|
|
jobLabel: ray-workers
|
|
# Only select Kubernetes Pods in the "default" namespace.
|
|
namespaceSelector:
|
|
matchNames:
|
|
- default
|
|
# Only select Kubernetes Pods with "matchLabels".
|
|
selector:
|
|
matchLabels:
|
|
ray.io/node-type: worker
|
|
# A list of endpoints allowed as part of this PodMonitor.
|
|
podMetricsEndpoints:
|
|
- port: metrics
|
|
relabelings:
|
|
- sourceLabels: [__meta_kubernetes_pod_label_ray_io_cluster]
|
|
targetLabel: ray_io_cluster
|
|
---
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: PodMonitor
|
|
metadata:
|
|
labels:
|
|
# `release: $HELM_RELEASE`: Prometheus can only detect PodMonitor with this label.
|
|
release: prometheus
|
|
name: ray-head-monitor
|
|
namespace: prometheus-system
|
|
spec:
|
|
jobLabel: ray-head
|
|
# Only select Kubernetes Pods in the "default" namespace.
|
|
namespaceSelector:
|
|
matchNames:
|
|
- default
|
|
# Only select Kubernetes Pods with "matchLabels".
|
|
selector:
|
|
matchLabels:
|
|
ray.io/node-type: head
|
|
# A list of endpoints allowed as part of this PodMonitor.
|
|
podMetricsEndpoints:
|
|
- port: metrics
|
|
relabelings:
|
|
- action: replace
|
|
sourceLabels:
|
|
- __meta_kubernetes_pod_label_ray_io_cluster
|
|
targetLabel: ray_io_cluster
|
|
- port: as-metrics # autoscaler metrics
|
|
relabelings:
|
|
- action: replace
|
|
sourceLabels:
|
|
- __meta_kubernetes_pod_label_ray_io_cluster
|
|
targetLabel: ray_io_cluster
|
|
- port: dash-metrics # dashboard metrics
|
|
relabelings:
|
|
- action: replace
|
|
sourceLabels:
|
|
- __meta_kubernetes_pod_label_ray_io_cluster
|
|
targetLabel: ray_io_cluster
|